/* ============================================
   WEDDING GALLERY — GRID + AUTH UI
   ============================================ */

.wedding-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.wedding-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.wedding-gallery-link {
  display: block;
  position: relative;
  cursor: pointer;
}

.wedding-gallery-link img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 300ms ease;
}

.wedding-gallery-link:hover img {
  transform: scale(1.03);
}

.wedding-gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.wedding-gallery-thumb--video {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8e4df 0%, #d4cfc8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a9490;
}

.wedding-gallery-thumb--video svg {
  opacity: 0.6;
}

.wedding-gallery-empty {
  text-align: center;
  color: #9a9490;
  font-style: italic;
  padding: 3rem 1rem;
}

.gallery-page {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(107, 138, 107, 0.5) 0%, rgba(85, 117, 85, 0.5) 50%, rgba(63, 95, 63, 0.5) 100%);
  position: relative;
}

.gallery-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 46, 42, 0.45);
  pointer-events: none;
}

.gallery-page .container {
  position: relative;
  z-index: 1;
}

.gallery-page .section__header h1,
.gallery-page .section__header p {
  color: #ffffff;
}

.gallery-page .section__divider {
  background: rgba(255, 255, 255, 0.4);
}

/* ============================================
   LOCKED / AUTH PROMPT
   ============================================ */

.wedding-gallery-locked {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #f3f0eb;
  border-radius: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.wedding-gallery-locked svg {
  color: #b8926a;
  margin-bottom: 1rem;
}

.wedding-gallery-locked h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.wedding-gallery-locked p {
  color: #6b6560;
  margin-bottom: 1.5rem;
}

.wedding-gallery-auth {
  margin-bottom: 1.5rem;
}

.wedding-gallery-msg {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.wedding-gallery-msg--success {
  background: #edfaef;
  color: #1b5e20;
}

.wedding-gallery-msg--error {
  background: #fdecea;
  color: #c62828;
}

.wedding-gallery-msg p {
  margin: 0;
}

/* Registration form */
.wedding-gallery-register {
  text-align: left;
  border-top: 1px solid #e8e4df;
  padding-top: 1rem;
}

.wedding-gallery-register summary {
  cursor: pointer;
  color: #b8926a;
  font-weight: 500;
  font-size: 0.9rem;
  user-select: none;
}

.wedding-gallery-register summary:hover {
  color: #a07d58;
}

.wedding-gallery-reg-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wedding-gallery-reg-form__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #3a3530;
}

.wedding-gallery-reg-form__field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e8e4df;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}

.wedding-gallery-reg-form__field input:focus {
  outline: none;
  border-color: #b8926a;
  box-shadow: 0 0 0 2px rgba(184, 146, 106, 0.2);
}

.wedding-gallery-reg-form .description {
  font-size: 0.8rem;
  color: #9a9490;
  margin: 0;
}

/* ============================================
   GLIGHTBOX OVERRIDES
   ============================================ */

.glightbox-desc {
  font-size: 14px !important;
  padding: 12px 20px !important;
  text-align: center !important;
}

.pswp__button {
  opacity: 0.85;
  transition: opacity 150ms ease;
}

.pswp__button:hover {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 640px) {
  .wedding-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .wedding-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
