/* Photography collection link cards */
.photo-collections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: min(100%, 700px);
  margin: 0 auto;
}

.photo-link-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #161616;
  text-decoration: none;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  background: #f6f6f6;
  transition: box-shadow 0.2s;
}

.photo-link-text {
  color: #161616;
  text-decoration: underline;
  font-family: inherit;
  font-size: 1rem;
  padding: 0 0 10px 0;
  background: #f6f6f6;
}

.photo-link-img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
}
.photo-link-img-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.tattoos {
  background-color: rgb(255, 58, 176);
}

.moving-image {
  /* background-color: rgb(125, 229, 255); */
  background-color: #f6f6f6;
}

.circle-workshop {
  background-color: rgb(214, 255, 52);
}

.undocumented-daily {
  background-color: rgb(255, 32, 32);
}

/* Shared layout for artwork pages */
.artwork-page {
  padding: 3rem 1rem 3rem 1rem; /* space from edges and fixed logo */
}

.gallery {
  width: min(92vw, 1100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Slightly smaller gallery only on Circle Workshop page */
.circle-workshop .gallery {
  width: min(80vw, 900px);
}

.row img {
  width: 100%;
  height: auto;
  display: block;
}

/* Constrain photography images to viewport height */
.photography .gallery img {
  max-height: 98vh;
  height: auto;
  width: auto; /* override generic 100% to allow height cap to work */
  max-width: 100%; /* still prevent overflow horizontally */
}

.tattoos .gallery img {
  max-height: 99vh;
  height: auto;
  width: auto;
  max-width: 100%;
}

.tattoos .gallery .row {
  gap: 1rem;
  justify-items: center;
}

/* Allow single images within two-column rows to span full width */
.row img.full {
  grid-column: 1 / -1;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Center images within grid cells on photography page */
.photography .gallery .row {
  justify-items: center;
}

.back-link {
  font-family: "Inconsolata", monospace;
  color: #161616;
  text-decoration: underline;
}

.header-right {
  position: fixed;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
}

/* Stacked videos layout */
.video-stack {
  width: min(92vw, 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.video-stack video,
.video-stack iframe {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* Text block for long copy sections on artwork pages */
.text-block {
  width: min(92vw, 1200px);
  margin: 2rem auto 5rem auto;
  text-align: center;
}
.text-block p {
  font-family: "Inconsolata", monospace;
  color: #161616;
  line-height: 1.25;
  margin: 0;
}

/* Add a small gap between consecutive paragraphs */
.text-block p + p {
  margin-top: 1rem;
}

.undocumented-section {
  width: min(92vw, 900px);
  margin: 0 auto;
}

.undocumented-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 0 auto;
}

.undocumented-pair + .undocumented-copy,
.undocumented-copy + .undocumented-pair {
  margin-top: 5rem;
}

.undocumented-pair img {
  width: 100%;
  height: auto;
  display: block;
}

.undocumented-copy {
  width: min(92vw, 600px);
}

.undocumented-copy p {
  color: #f6f6f6;
  text-align: justify;
}

.house-poem-div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* .housewife-h3 {
  width: 100%;
  text-align: center;
  color: #161616;
  font-family: "Inconsolata", monospace;
  margin-bottom: 5vh;
} */

.housewife-poem p {
  margin: 0;
  color: #161616;
  font-family: "Inconsolata", monospace;
  font-size: 1rem;
  line-height: 1.1;
  text-align: right;
}

.housewife-poem p + p {
  margin-top: 1rem;
}

/* Tattoos landing: preview cards */
.tattoos .preview-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #161616;
  padding: 0.75rem;
  width: min(100%, 26rem);
  text-align: center;
}
/* When the card itself is an anchor, style the label */
.tattoos .preview-card .preview-label {
  font-family: "Inconsolata", monospace;
  color: #161616;
  text-decoration: underline;
  margin: 0;
}
.tattoos .gallery img.preview-image {
  width: 100%;
  height: 35rem;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0.5rem auto 0;
}

@media (max-width: 768px) {
  .header-right {
    position: absolute;
  }

  .tattoos .gallery .row {
    grid-template-columns: 1fr;
  }

  .tattoos .gallery img.preview-image {
    width: 100%;
    height: auto;
  }
}

.moving-image-accordion {
  width: min(92vw, 1200px);
  margin: 0 auto;
}

.moving-image-item {
  margin-top: 1rem;
  background-color: #f6f6f6;
}

.moving-image-heading {
  margin: 0;
  text-align: center;
}

.moving-image-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  color: #161616;
  text-decoration: underline;
  font-family: "Inconsolata", monospace;
  font-size: 1.15rem;
  line-height: 1.25;
  text-align: center;
  cursor: none;
}

.moving-image-toggle:focus-visible {
  outline: 2px solid #161616;
  outline-offset: 6px;
}

.moving-image-panel {
  margin-top: 1rem;
}

.moving-image-embed {
  width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
}

.moving-image-description {
  width: min(100%, 760px);
  margin: 1rem auto 1rem;
  text-align: center;
}

.moving-image-description p {
  margin: 0;
  color: #161616;
  font-family: "Inconsolata", monospace;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
}

.moving-image-description p + p {
  margin-top: 1rem;
}

.moving-image-embed iframe {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  border: 0;
}

.moving-image-gallery {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.moving-image-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.moving-image-poem {
  width: min(100%, 760px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 4rem;
}

.moving-image-poem p {
  margin: 0;
  color: #161616;
  font-family: "Inconsolata", monospace;
  font-size: clamp(1rem);
  line-height: 1.55;
  text-align: right;
}

.moving-image-poem p + p {
  margin-top: 1.5rem;
}

.expand-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  color: rgb(255, 58, 176);
  font-family: "Inconsolata", monospace;
  font-size: 1rem;
  text-transform: lowercase;
  opacity: 0;
  transform: translate(10px, 10px);
  transition: opacity 120ms ease;
}

.expand-cursor.is-visible {
  opacity: 1;
}

@media (max-width: 768px) {
  .moving-image-gallery {
    grid-template-columns: 1fr;
  }

  .moving-image-poem {
    margin-top: 0;
  }
}

@media (hover: none), (pointer: coarse) {
  .moving-image-toggle {
    cursor: pointer;
  }

  .expand-cursor {
    display: none;
  }
}

/* On small screens, stack two-up rows vertically */
@media (max-width: 768px) {
  .row {
    grid-template-columns: 1fr;
  }

  .pair {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .undocumented-pair {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    justify-items: center;
  }

  .undocumented-pair + .undocumented-copy,
  .undocumented-copy + .undocumented-pair {
    margin: 2rem 0;
  }

  .undocumented-pair img {
    width: 90%;
    margin: 0.5rem 0;
  }
}
