@import url('main.css');

.content {
  --content--margin: 2%;
  overflow: auto;
  justify-content: center;
}

.image__wrapper--sunflowers1 {
  flex-basis: 75%;
  flex-shrink: 2;
  border-width: var(--shadow-width);
  border-style: solid;
  border-color: var(--skeuomorphic-border);
}

.image {
  position: relative;
  z-index: 1;
  /* move above paper texture */
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.image-and-caption {
  display: flex;
  gap: var(--spacing-2);
  align-items: center;
}

.caption {
  flex-basis: 180px;
  font-size: var(--font-size--caption);
  line-height: 1.2;
}

.caption p:not(:first-of-type) {
  padding-top: var(--spacing-2);
}

label {
  font-size: 1rem;
  cursor: text;
  padding: var(--spacing-1);
  display: inline-block;
}

label:not(:has(input:checked)) {
  text-decoration: underline;
  cursor: pointer;
}

input {
  height: 0;
  width: 0;
  opacity: 0;
  position: absolute;
}

label:has(:focus-visible) {
  box-shadow: inset 2px 2px var(--text--primary), inset -2px -2px var(--text--primary);
}

.original-size-link {
  margin-left: var(--spacing-1);
}

.fullsize-container {
  position: absolute;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: black;
  --text--primary: white;
  z-index: 1;
}

.fullsize-container--hidden {
  display: none;
}

@media only screen and (max-width: 900px) {
  .content {
    justify-content: unset;
  }

  .image-and-caption {
    flex-direction: column;
  }

  .caption {
    padding-bottom: var(--spacing-2);
  }
}

@media only screen and (max-width: 1160px) {
  :root {
    --padding--large: var(--spacing-2);
    --padding--between-groups: var(--spacing-2);
    --content--margin: 2%;
  }
}

/* TEST */

.test--wrapper {
  max-width: min(1280px, 100vw);
  cursor: zoom-out;
}

.test--wrapper img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: contain;
}

.test--wrapper img:first-child {
  z-index: 1;
}

.background {
  position: absolute;
  height: calc(100vh + 100px);
  width: calc(100vw + 100px);
  transform: translateX(-20px) translateY(-20px);
  opacity: 0.8;
  z-index: 1;
}

.background img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  filter: blur(10px);
}

.radio--wrapper {
  z-index: 1;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  color: var(--text--primary);
  font-family: var(--font--primary);
  padding-bottom: 4px;
  background-color: #0008;
}

.radio--wrapper--hidden {
  display: none;
}

.radio--wrapper,
.radio--wrapper label {
  font-size: var(--radio-font-size);
}

#vertical-separator {
  display: inline;
}

#horizontal-separator {
  display: none;
  color: var(--text--primary);
  width: 50%;
  margin: 0;
}

.close {
  display: block;
  width: 45px;
  position: absolute;
  right: 0;
  top: 0;
  padding: var(--spacing-2);
  z-index: 2;
  background-color: #0008;
}

.close img {
  filter: brightness(10);
}

@supports (backdrop-filter: blur(10px)) {

  .radio--wrapper,
  .close {
    background-color: transparent;
    backdrop-filter: blur(10px);
  }
}
