/* Gallery-only enhancements. All original global page/header/footer styles are preserved. */
.viktri-gallery{scroll-margin-top:98px}
.vg-overview{padding-bottom:43px}
.vg-overview .section-intro{margin-bottom:21px}
.vg-category-nav{display:flex;flex-wrap:wrap;gap:10px}
.vg-category-nav a{display:inline-flex;align-items:center;min-height:41px;padding:9px 17px;border:1px solid #e4d0cc;border-radius:999px;background:#fffaf6;color:#78274e;font:600 13px/1.3 'DM Sans',sans-serif;text-decoration:none;transition:background .2s,border-color .2s}
.vg-category-nav a:hover,.vg-category-nav a:focus-visible{background:#f9e7ef;border-color:#bc839c;text-decoration:none}
.viktri-gallery .vg-category{padding:38px 0 43px;border-top:1px solid #eaded6;scroll-margin-top:90px}
.viktri-gallery .vg-category:first-of-type{border-top:0;padding-top:20px}
.viktri-gallery .vg-category-header{margin:0 0 23px}
.viktri-gallery .vg-category-title{font:500 clamp(32px,3.25vw,45px)/1.12 'Fraunces',Georgia,serif;letter-spacing:-.025em;color:#39252e;margin:7px 0}
.viktri-gallery .vg-category-header p{font:400 14px/1.6 'DM Sans',sans-serif;color:#685c5c;margin:8px 0 0}
.viktri-gallery .vg-student-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.viktri-gallery .student-work-card,.viktri-gallery .vg-original-card{min-width:0}
.viktri-gallery .vg-art-button{display:block;width:100%;margin:0;padding:0;appearance:none;border:0;background:transparent;text-align:left;cursor:zoom-in;position:relative;min-width:0;font:inherit;color:inherit}
.viktri-gallery .vg-art-button:focus-visible{outline:3px solid #0c6d70;outline-offset:3px;border-radius:5px}
.viktri-gallery .student-work-frame{display:flex;align-items:center;justify-content:center;aspect-ratio:4/4.5;overflow:hidden;position:relative;width:100%;padding:10px;background:#faf6f1;border:1px solid #e7d8ce;border-radius:5px}
.viktri-gallery .student-work-frame img{width:100%;height:100%;max-width:100%;max-height:100%;display:block;object-fit:contain;object-position:center;transition:transform .22s ease}
.viktri-gallery .vg-art-button:hover img{transform:scale(1.018)}
.viktri-gallery .vg-zoom-hint{position:absolute;right:11px;bottom:11px;padding:6px 8px;background:rgba(255,255,255,.95);border:1px solid rgba(95,65,75,.12);border-radius:4px;color:#642644;font:600 10px/1 'DM Sans',sans-serif;opacity:0;transition:opacity .2s;pointer-events:none}
.viktri-gallery .vg-art-button:hover .vg-zoom-hint,.viktri-gallery .vg-art-button:focus-visible .vg-zoom-hint{opacity:1}
.viktri-gallery .student-work-credit{padding:11px 2px 0}
.viktri-gallery .student-work-credit strong{font-size:15px}
.viktri-gallery .student-work-credit span{font-size:13px}
.viktri-gallery .vg-category-footnote{color:#877777;font-size:13px;margin:18px 0 0}
.vg-artist-gallery,.vg-events-gallery{scroll-margin-top:90px}
.viktri-gallery .vg-original-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}
.viktri-gallery .vg-original-frame{display:flex;align-items:center;justify-content:center;aspect-ratio:4/4.7;width:100%;padding:9px;background:#fff;border:1px solid #e6dcd4;border-radius:5px;overflow:hidden;position:relative}
.viktri-gallery .vg-original-frame img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transition:transform .22s ease}
.viktri-gallery .vg-original-caption{display:flex;flex-direction:column;gap:3px;padding:10px 2px 0}
.viktri-gallery .vg-original-caption strong{font:500 19px/1.2 'Fraunces',serif;color:#32252c}
.viktri-gallery .vg-original-caption span{font-size:12px;color:#75676b}
.viktri-gallery .vg-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.viktri-gallery .vg-event-card{padding:0;margin:0;min-width:0;background:#fdf8f3;border:1px solid #eadbd0;border-radius:6px;overflow:hidden}
.viktri-gallery .vg-event-media{background:#241f20;display:flex;justify-content:center;align-items:center;aspect-ratio:4/4.9;min-width:0}
.viktri-gallery .vg-event-media video{width:100%;height:100%;object-fit:contain;display:block;background:#241f20}
.viktri-gallery .vg-event-card figcaption{padding:15px 16px 18px;display:flex;flex-direction:column;gap:5px}
.viktri-gallery .vg-event-card figcaption strong{font:500 20px/1.22 'Fraunces',serif;color:#36232b}
.viktri-gallery .vg-event-card figcaption span{font:400 12px/1.5 'DM Sans',sans-serif;color:#6f6164}
.vg-lightbox{border:0;border-radius:8px;background:#fffaf6;padding:38px 20px 18px;max-width:min(96vw,1150px);max-height:94dvh;box-shadow:0 18px 50px rgba(31,16,28,.27)}
.vg-lightbox::backdrop{background:rgba(19,15,18,.84)}
.vg-lightbox:not([open]){display:none}
.vg-lightbox-inner{display:flex;flex-direction:column;gap:12px;align-items:center;min-width:0}
.vg-lightbox-inner img{display:block;max-width:100%;width:auto;height:auto;max-height:calc(94dvh - 115px);object-fit:contain}
.vg-lightbox-inner p{font:500 14px/1.4 'DM Sans',sans-serif;color:#473b3b;margin:0;text-align:center}
.vg-lightbox-close{position:absolute;right:9px;top:5px;border:0;background:transparent;color:#612442;font-size:34px;cursor:pointer;line-height:1;padding:3px 11px}
@media(max-width:950px){.viktri-gallery .vg-student-grid,.viktri-gallery .vg-original-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.viktri-gallery .vg-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.vg-overview{padding-bottom:32px}.vg-category-nav{gap:8px}.vg-category-nav a{font-size:12px;min-height:37px;padding:8px 12px}.viktri-gallery .vg-category{padding:27px 0 35px}.viktri-gallery .vg-student-grid,.viktri-gallery .vg-original-grid{gap:16px 11px}.viktri-gallery .student-work-frame{padding:6px;aspect-ratio:4/5}.viktri-gallery .vg-original-frame{padding:5px;aspect-ratio:4/5}.viktri-gallery .student-work-credit strong{font-size:13px}.viktri-gallery .student-work-credit span{font-size:12px}.viktri-gallery .vg-original-caption strong{font-size:16px}.viktri-gallery .vg-event-grid{grid-template-columns:1fr}.viktri-gallery .vg-event-card{max-width:430px}.viktri-gallery .vg-event-media{aspect-ratio:4/5.2}.viktri-gallery .vg-zoom-hint{display:none}.vg-lightbox{padding:35px 10px 15px;max-width:96vw}}
@media(max-width:330px){.viktri-gallery .vg-student-grid,.viktri-gallery .vg-original-grid{grid-template-columns:1fr}.viktri-gallery .student-work-frame{aspect-ratio:4/4.7}}
@media(prefers-reduced-motion:reduce){.viktri-gallery .vg-art-button img{transition:none}.viktri-gallery .vg-art-button:hover img{transform:none}}

/* Fix gallery lightbox: reserve a real image viewport on desktop and mobile. */
.vg-lightbox {
  box-sizing: border-box;
  width: min(980px, calc(100vw - 30px));
  height: min(800px, calc(100dvh - 30px));
  max-width: none;
  max-height: none;
  overflow: hidden;
  margin: auto;
}
.vg-lightbox-inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}
.vg-lightbox-inner img {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.vg-lightbox-inner p {
  flex: 0 0 auto;
  width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .vg-lightbox {
    width: calc(100vw - 16px);
    height: calc(100dvh - 28px);
    padding: 38px 10px 16px;
  }
  .vg-lightbox-inner { gap: 8px; }
}

/* Gallery event-photo refinements: non-cropped photos, existing brand styling retained. */
.viktri-gallery .vg-event-grid{align-items:start}
.viktri-gallery .vg-event-photo-card .vg-event-media{aspect-ratio:4/3;background:#faf6f1}
.viktri-gallery .vg-event-photo-card .vg-art-button{height:100%;width:100%;cursor:zoom-in}
.viktri-gallery .vg-event-photo-card img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain}

/* Events photo group styles 2026-11-07 */
.viktri-gallery .vg-event-group{margin-top:32px}.viktri-gallery .vg-event-group+.vg-event-group{margin-top:48px;padding-top:38px;border-top:1px solid #eaded6}.viktri-gallery .vg-event-group h3{font:500 clamp(30px,3vw,42px)/1.13 'Fraunces',Georgia,serif;color:#33242c;margin:0 0 9px}.viktri-gallery .vg-event-group h3 em{font:400 1em 'Satisfy',cursive;color:#932355}.viktri-gallery .vg-event-group>p{margin:0 0 21px;color:#655a5a;font-size:14px;line-height:1.55}.viktri-gallery .vg-event-group .vg-event-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.viktri-gallery .vg-event-media .vg-event-photo-button{display:block;border:0;margin:0;padding:0;width:100%;height:100%;background:#f8f3ed;cursor:zoom-in}.viktri-gallery .vg-event-media .vg-event-photo-button:focus-visible{outline:3px solid #0c6d70;outline-offset:-3px}.viktri-gallery .vg-event-media .vg-event-photo-button img{width:100%;height:100%;display:block;object-fit:contain;object-position:center}.viktri-gallery .vg-event-card{display:flex;flex-direction:column}.viktri-gallery .vg-event-card figcaption{flex:1}.viktri-gallery .vg-event-card figcaption strong{font-size:17px}@media(max-width:980px){.viktri-gallery .vg-event-group .vg-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:580px){.viktri-gallery .vg-event-group{margin-top:25px}.viktri-gallery .vg-event-group+.vg-event-group{margin-top:33px;padding-top:27px}.viktri-gallery .vg-event-group .vg-event-grid{grid-template-columns:1fr;max-width:520px;gap:16px}.viktri-gallery .vg-event-media{aspect-ratio:4/3.4}.viktri-gallery .vg-event-card .vg-event-media video{object-fit:contain}.viktri-gallery .vg-event-card figcaption{padding:13px 14px 16px}}

/* Events highlight video strip 2026-11-07 */
.viktri-gallery .vg-event-videos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:810px;margin-top:18px}.viktri-gallery .vg-event-videos .vg-event-card{min-width:0}.viktri-gallery .vg-event-videos .vg-event-media{aspect-ratio:4/4;min-height:270px;max-height:390px;background:#251d21}.viktri-gallery .vg-event-videos .vg-event-media video{width:100%;height:100%;display:block;object-fit:contain}.viktri-gallery .vg-event-videos .vg-event-card figcaption strong{font-size:17px}@media(max-width:580px){.viktri-gallery .vg-event-videos{grid-template-columns:1fr;max-width:440px;gap:15px}.viktri-gallery .vg-event-videos .vg-event-media{aspect-ratio:4/4.3;max-height:510px}}

/* Events media whitespace correction — November 2026 */
/* Photos are genuine 4:3 images: use their native ratio without letterboxing. */
.viktri-gallery .vg-event-group .vg-event-grid .vg-event-media {aspect-ratio:4/3;min-height:0;max-height:none;overflow:hidden;background:#f8f3ed;}
.viktri-gallery .vg-event-group .vg-event-grid .vg-event-photo-button{height:100%;width:100%;display:block;overflow:hidden;}
.viktri-gallery .vg-event-group .vg-event-grid .vg-event-photo-button img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;}
/* Videos are genuinely vertical 9:16 footage: size the card for the actual video. */
.viktri-gallery .vg-event-videos{grid-template-columns:repeat(2,minmax(0,290px));align-items:start;max-width:none;}
.viktri-gallery .vg-event-videos .vg-event-card{width:100%;max-width:290px;}
.viktri-gallery .vg-event-videos .vg-event-media{width:100%;min-height:0;max-height:none;aspect-ratio:9/16;overflow:hidden;background:#241f20;}
.viktri-gallery .vg-event-videos .vg-event-media video{display:block;width:100%;height:100%;object-fit:contain;object-position:center;}
@media(max-width:580px){.viktri-gallery .vg-event-group .vg-event-grid .vg-event-media{aspect-ratio:4/3;}.viktri-gallery .vg-event-videos{grid-template-columns:repeat(2,minmax(0,1fr));max-width:440px;gap:11px;}.viktri-gallery .vg-event-videos .vg-event-card{max-width:210px;}.viktri-gallery .vg-event-videos .vg-event-media{aspect-ratio:9/16;min-height:0;max-height:none;}}
@media(max-width:350px){.viktri-gallery .vg-event-videos{grid-template-columns:minmax(0,1fr);max-width:250px;}.viktri-gallery .vg-event-videos .vg-event-card{max-width:250px;}}

/* Student-artwork cropped source refinement 2026-11-07 */
/* Keep entire physical artwork visible, with only a slim neutral frame. */
.viktri-gallery .vg-student-grid .student-work-frame{padding:5px;background:#f8f6f2;}
.viktri-gallery .vg-student-grid .student-work-frame img{object-fit:contain;object-position:center;max-width:100%;max-height:100%;}
@media(max-width:580px){.viktri-gallery .vg-student-grid .student-work-frame{padding:3px;}}

/* Approved Oil Pastels Age Groups, November 2026 */
.viktri-gallery #pastels .vg-pastel-age-groups{margin-top:22px}
.viktri-gallery #pastels .vg-pastel-medium-header h4{font:500 clamp(25px,2.8vw,33px)/1.2 "Fraunces",Georgia,serif;color:#39252e;margin:0 0 8px}
.viktri-gallery #pastels .vg-pastel-medium-header p,.viktri-gallery #pastels .vg-pastel-existing-group>p{margin:0 0 19px;color:#685c5c;font:400 14px/1.6 "DM Sans",sans-serif}
.viktri-gallery #pastels .vg-pastel-age-group{margin:24px 0 31px}
.viktri-gallery #pastels .vg-pastel-group-title{font:600 clamp(18px,2vw,24px)/1.3 "Fraunces",Georgia,serif;color:#8c2556;margin:0 0 17px}
.viktri-gallery #pastels .vg-pastel-existing-group{margin-top:42px;padding-top:28px;border-top:1px solid #eaded6}
.viktri-gallery #pastels .vg-student-grid .student-work-frame img{width:100%;height:100%;object-fit:contain;object-position:center}
@media(max-width:580px){.viktri-gallery #pastels .vg-pastel-age-group{margin:20px 0 25px}.viktri-gallery #pastels .vg-pastel-existing-group{margin-top:29px;padding-top:23px}.viktri-gallery #pastels .vg-pastel-medium-header p{margin-bottom:16px}}
