/* ==========================================================================
   Photo-led layout: real warehouse photography
   ========================================================================== */

/* Hero photo panel */

.hero {
  min-height: 620px;
}

.hero__copy {
  padding-top: 44px;
  padding-bottom: 42px;
}

.hero__visual {
  position: relative;
  min-height: 560px;
  padding: 0;
  background: var(--forest-deep);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 32, 24, 0.42) 0%, transparent 26%),
    linear-gradient(0deg, rgba(12, 28, 20, 0.86) 0%, transparent 46%),
    linear-gradient(90deg, rgba(12, 28, 20, 0.24), transparent 40%);
}

.hero__visual-top {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero__visual-bottom {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
}

.hero__visual-bottom > div:first-child {
  max-width: 260px;
}

.hero__photo-label {
  display: inline-block;
  margin-bottom: 4px;
  color: #e5b08a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__visual-bottom p {
  max-width: 240px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero__spec {
  position: static;
  flex: 0 0 auto;
  padding: 9px 12px;
  background: rgba(251, 248, 242, 0.96);
  color: var(--forest);
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(8, 22, 15, 0.18);
}

.hero__spec span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.hero__spec strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.hero__visual-top > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero__photo-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero__photo-link .icon {
  width: 13px;
  height: 13px;
}

.hero__photo-link:hover {
  color: #f0c7a9;
}

/* Photo strip */

.section--gallery {
  background: var(--paper-2);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.photo-card {
  display: block;
  overflow: hidden;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.photo-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
}

.photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.photo-card__caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.photo-card__caption strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.photo-card:hover .photo-card__media img {
  transform: scale(1.03);
}

/* Full gallery page */

.section--gallery-page {
  background: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  margin: 0;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.gallery-item a {
  display: block;
  overflow: hidden;
  background: var(--paper-3);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}

.gallery-item figcaption strong {
  font-size: 14px;
  font-weight: 600;
}

.gallery-item figcaption span {
  color: var(--muted);
  font-size: 11px;
}

.gallery-note {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* CTA photo */

.cta-band__bg {
  background-image: url("../img/cta-yard.jpg");
  background-position: center 52%;
  opacity: 0.4;
}

/* Real photos in the calculator / about blocks */

.calc__intro > img {
  object-position: center 48%;
}

.about-photo > img {
  object-position: center 48%;
}

@media (hover: none) {
  .photo-card:hover .photo-card__media img,
  .gallery-item:hover img {
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: 0;
  }

  .hero__visual {
    min-height: 430px;
  }

  .hero__copy {
    padding-top: 32px;
    padding-bottom: 30px;
  }

  .photo-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__bg {
    object-position: center 55%;
  }
}

@media (max-width: 680px) {
  .hero__visual {
    min-height: 360px;
  }

  .hero__visual-top {
    top: 12px;
    left: 12px;
    right: 12px;
    font-size: 10px;
  }

  .hero__visual-bottom {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }

  .hero__visual-bottom p {
    font-size: 10px;
    max-width: 170px;
  }

  .hero__photo-label {
    font-size: 8px;
  }

  .hero__spec {
    padding: 7px 9px;
  }

  .hero__spec strong {
    font-size: 12px;
  }

  .hero__spec span {
    font-size: 8px;
  }

  .hero__photo-link {
    display: none;
  }

  .photo-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .photo-card__caption,
  .gallery-item figcaption {
    padding: 8px;
  }

  .photo-card__caption strong,
  .gallery-item figcaption strong {
    font-size: 12px;
  }

  .photo-card__caption,
  .gallery-item figcaption span {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .hero__visual {
    min-height: 330px;
  }

  .hero__visual-bottom p {
    display: none;
  }
}


/* Product cards with real media-library photos */

.product-art--photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-3);
}

.product-modal__art .product-art--photo {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 3px;
}
