/* A transparent equipment lineup opens the Photography section. */
.photo-section .photography-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 36px;
  margin-bottom: 42px;
}

.photography-heading > p {
  max-width: 32ch;
  margin: 0 0 7px;
  text-align: right;
}

.photography-gear {
  position: relative;
  isolation: isolate;
  grid-column: 1 / -1;
  min-width: 0;
  margin: 12px 0 0;
  padding-bottom: 28px;
}

/* The shadow sits at the equipment's shared base, beneath the cutout. */
.photography-gear::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 2%;
  bottom: 16px;
  left: 2%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .64), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.photography-gear .image-expand {
  position: relative;
  border-radius: 4px;
}

.photography-gear img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 7px 5px rgba(0, 0, 0, .24));
}

.photography-gear .image-expand::after {
  content: "↗";
  position: absolute;
  right: 0;
  bottom: -17px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(225, 240, 230, .2);
  border-radius: 8px;
  background: rgba(9, 18, 21, .85);
  color: #eef4ed;
  font-size: .85rem;
  line-height: 1;
  opacity: .8;
  pointer-events: none;
  transition: opacity 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .photography-gear .image-expand::after { opacity: 0; }
  .photography-gear .image-expand:is(:hover, :focus-visible)::after { opacity: 1; }
}

@media (max-width: 700px) {
  .photo-section .photography-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }

  .photography-heading > p { margin: 0; text-align: left; }
  .photography-gear { margin-top: 15px; padding-bottom: 26px; }
  .photography-gear::before { height: 12px; bottom: 18px; filter: blur(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .photography-gear .image-expand::after { transition: none; }
}

@media print {
  .photography-gear img { filter: none; }
  .photography-gear::before,
  .photography-gear .image-expand::after { display: none; }
}

/* Kept outside the section so the circular detail view is never clipped. */
.photography-magnifier {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 216px;
  height: 216px;
  border: 1px solid rgba(230, 243, 236, .6);
  border-radius: 50%;
  background-color: #10191c;
  background-repeat: no-repeat;
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: 0 12px 42px rgba(0, 0, 0, .5), 0 0 0 5px rgba(207, 228, 218, .05);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  contain: layout paint;
  transition: opacity 140ms ease, visibility 140ms;
}

.photography-magnifier.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (hover: none), (pointer: coarse), print {
  .photography-magnifier { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .photography-magnifier { transition: none; }
}
