/* Studio 15 — original-style gallery. Load AFTER style.css. */
.photo-section { background: #f7f4ef; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 255px;
  gap: 16px;
  align-items: stretch;
}
.gallery .photo {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #ddd8ce;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
.gallery .photo:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery .photo img,
.gallery .photo:first-child img,
.gallery .photo:nth-child(2) img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform .55s ease;
}
.gallery .photo::after {
  content: '';
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(12,22,22,.67));
  pointer-events: none;
}
.gallery .photo span {
  position: absolute;
  left: 22px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  font: 600 12px/1.5 Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  pointer-events: none;
}
.gallery .photo:hover img { transform: scale(1.045); }
.gallery .photo:focus-visible {
  outline: 3px solid #b7791f;
  outline-offset: 4px;
}
.filters { gap: 8px; margin-bottom: 28px; }
.filters button { padding: 7px 15px; font-size: 11px; }
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: 245px; }
  .gallery .photo:first-child { grid-column: span 2; grid-row: span 1; height: 100%; }
}
@media (max-width: 540px) {
  .gallery { grid-template-columns: minmax(0,1fr); grid-auto-rows: 280px; gap: 14px; }
  .gallery .photo:first-child { grid-column: auto; grid-row: auto; }
  .gallery .photo span { left: 18px; bottom: 18px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery .photo img { transition: none; }
  .gallery .photo:hover img { transform: none; }
}
