/**
 * ══════════════════════════════════════════════════════════════════════
 * Nagar Panchayat Shergarh — Photo & Video Gallery Styles
 * ══════════════════════════════════════════════════════════════════════
 * Authentic Museum-Grade Picture Framing for Photos & Cinematic Video Frames
 */

/* ── 1. PHOTO GALLERY PICTURE FRAMES ── */
.gallery-frame {
  height: 220px;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  background: #FFFFFF;
  padding: 7px;
  border: 1px solid rgba(159, 178, 172, 0.45);
  box-shadow: 0 10px 28px -4px rgba(93, 13, 26, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.05),
              inset 0 1px 2px rgba(255, 255, 255, 0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.gallery-frame:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--np-primary, #5D0D1A);
  box-shadow: 0 20px 42px -6px rgba(93, 13, 26, 0.25),
              0 6px 16px rgba(0, 0, 0, 0.1),
              0 0 0 2px var(--np-secondary, #9FB2AC);
}

.gallery-frame img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #FAF7F2;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-frame:hover img {
  transform: scale(1.06);
  filter: brightness(102%) contrast(102%);
}

.gallery-modal-img {
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  border: 4px solid #FFFFFF;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* ── 2. VIDEO GALLERY SECTION ── */
.video-gallery-section {
  background: var(--np-supportive, #F4ECD8);
  min-height: 80vh;
  padding: 60px 0 80px;
}

.video-section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 45px;
  font-family: 'Eczar', serif;
  color: var(--np-primary, #5D0D1A);
  text-align: center;
  position: relative;
  background: var(--np-gradient-text, linear-gradient(135deg, #5D0D1A 0%, #8C1A2D 50%, #450812 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.4;
  padding-top: 0.15em;
  padding-bottom: 0.15em;
  overflow: visible;
}

.video-section-title i {
  color: var(--np-primary, #5D0D1A);
  -webkit-text-fill-color: initial;
}

.video-section-title::after {
  content: "";
  width: 90px;
  height: 4px;
  background: var(--np-gradient-primary-h, linear-gradient(90deg, #3A050D 0%, #5D0D1A 50%, #8C1A2D 100%));
  display: block;
  margin: 12px auto 0;
  border-radius: 10px;
}

/* ── 3. CINEMATIC VIDEO DISPLAY FRAMES ── */
.video-card {
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 10px 30px -4px rgba(93, 13, 26, 0.14),
              0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding: 8px;
  border: 1px solid rgba(159, 178, 172, 0.45);
}

.video-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 22px 48px -6px rgba(93, 13, 26, 0.28),
              0 0 0 2px var(--np-secondary, #9FB2AC);
  border-color: var(--np-primary, #5D0D1A);
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #140306;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
  border: 3px solid #2B060D;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.65);
}

.video-thumb-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.video-thumb-wrapper:hover video {
  transform: scale(1.07);
  filter: brightness(95%);
}

.video-thumb-wrapper .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(35, 3, 8, 0.35), rgba(0, 0, 0, 0.65));
  transition: background 0.3s ease;
}

.video-thumb-wrapper:hover .play-overlay {
  background: linear-gradient(135deg, rgba(35, 3, 8, 0.2), rgba(0, 0, 0, 0.5));
}

.play-overlay .play-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--np-gradient-btn, linear-gradient(135deg, #8C1A2D 0%, #5D0D1A 50%, #3A050D 100%));
  border: 2.5px solid rgba(244, 236, 216, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(93, 13, 26, 0.65), 0 0 16px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumb-wrapper:hover .play-btn {
  transform: scale(1.15);
  box-shadow: 0 12px 32px rgba(93, 13, 26, 0.85), 0 0 24px rgba(244, 236, 216, 0.6);
  border-color: #FFFFFF;
}

.play-btn i {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin-left: 3px;
}

.video-card-body {
  padding: 16px 12px 8px;
  flex: 1;
  display: flex;
  align-items: center;
  background: #FFFFFF;
}

.video-card-title {
  font-weight: 700;
  font-size: 1.02rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
  color: var(--np-text-primary, #2A1810);
  line-height: 1.5;
  margin: 0;
  transition: color 0.3s ease;
}

.video-card:hover .video-card-title {
  color: var(--np-primary, #5D0D1A);
}

.video-modal-header {
  background: var(--np-gradient-primary, linear-gradient(135deg, #3A050D 0%, #5D0D1A 45%, #761423 100%));
  border-bottom: 2px solid var(--np-secondary, #9FB2AC);
}

.video-modal-title {
  color: var(--np-supportive, #F4ECD8);
  font-weight: 700;
  font-family: 'Eczar', serif;
}

#modalVideo {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
