﻿/* SPC Gallery: canonical gallery and lightbox stylesheet. */


html.spc-gallery-open{overflow:hidden!important}
.spc-gallery-lightbox[hidden]{display:none!important}
.spc-gallery-lightbox{position:fixed!important;inset:0!important;z-index:2147483000!important;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(5,20,37,.94);backdrop-filter:blur(6px);animation:spcGalleryFade .2s ease-out}
.spc-gallery-stage{position:relative;display:flex;align-items:center;justify-content:center;width:min(1280px,100%);height:100%;max-height:100%;padding:45px 52px 68px}
.spc-gallery-image-wrap{position:relative;display:block;width:100%;height:100%;min-height:0;overflow:hidden}
.spc-gallery-lightbox .spc-gallery-full{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;opacity:0;transition:opacity .58s cubic-bezier(.4,0,.2,1)}
.spc-gallery-lightbox .spc-gallery-full.is-ready{opacity:1}.spc-gallery-lightbox .spc-gallery-full.is-fading-out{opacity:0;transition-duration:.44s}
.spc-gallery-loading{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);padding:8px 15px;border-radius:99px;background:rgba(6,39,64,.85);color:#fff;font:500 13px/1.4 Arial,sans-serif;white-space:nowrap}
.spc-gallery-lightbox button{position:absolute;z-index:2;display:grid;place-items:center;width:43px;height:43px;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(255,255,255,.12);color:white;font:300 29px/1 Arial,sans-serif;cursor:pointer;transition:background .2s,transform .2s}
.spc-gallery-lightbox button:hover,.spc-gallery-lightbox button:focus-visible{background:#008db9;transform:scale(1.07)}
.spc-gallery-lightbox .spc-gallery-close{position:fixed!important;top:max(16px,env(safe-area-inset-top))!important;right:max(18px,env(safe-area-inset-right))!important;z-index:2147483001!important;width:48px;height:48px;background:rgba(255,255,255,.2);box-shadow:0 4px 18px rgba(0,0,0,.3)}.spc-gallery-prev{left:0;top:50%}.spc-gallery-next{right:0;top:50%}.spc-gallery-lightbox > .spc-gallery-play{position:fixed;top:18px;right:86px;bottom:auto;left:auto;z-index:2147483001;width:48px;height:48px;font-size:20px;background:rgba(255,255,255,.24)}
.spc-gallery-caption{position:absolute;bottom:4px;left:52px;right:52px;display:flex;align-items:center;gap:14px;color:#e7f4fb;font:500 13px/1.5 Arial,sans-serif}
.spc-gallery-counter{white-space:nowrap;color:#83d6f2}.spc-gallery-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.spc-gallery-original{color:#fff!important;text-decoration:none;border:1px solid rgba(255,255,255,.3);border-radius:30px;padding:7px 13px;white-space:nowrap}.spc-gallery-original:hover{background:#008db9}
@keyframes spcGalleryFade{from{opacity:0}to{opacity:1}}
@media(max-width:650px){.spc-gallery-lightbox{padding:10px}.spc-gallery-stage{padding:55px 8px 82px}.spc-gallery-close{right:8px}.spc-gallery-prev{left:0;top:auto;bottom:27px}.spc-gallery-next{right:0;top:auto;bottom:27px}.spc-gallery-caption{bottom:10px;left:48px;right:48px;flex-wrap:wrap;justify-content:center}.spc-gallery-description{display:none}.spc-gallery-original{padding:5px 9px}.spc-gallery-lightbox > .spc-gallery-play{top:16px;right:78px}}
@media(prefers-reduced-motion:reduce){.spc-gallery-lightbox,.spc-gallery-full,.spc-gallery-lightbox button{animation:none;transition:none}}

/* Lightbox pointer behavior */
.spc-gallery-lightbox,.spc-gallery-stage,.spc-gallery-image-wrap{cursor:zoom-out}
.spc-gallery-full{cursor:default}
.spc-gallery-lightbox button,.spc-gallery-original{cursor:pointer}


/* Canonical layout for both gallery pages. */
.spc-gallery-page{
  /* Breadcrumb follows the shared site spacing; toolbar separation is independent. */
  width:calc(100% - 48px);max-width:1280px;margin:0 auto;
  padding:0;box-sizing:border-box;display:block;clear:both;
  --spc-breadcrumb-toolbar-gap:20px;

}
.spc-gallery-page *, .spc-gallery-page *::before,.spc-gallery-page *::after{box-sizing:border-box}
.spc-gallery-page > .mt_title_ct_c{
  display:block;width:100%;max-width:none;height:auto;min-height:0;
  margin:0;clear:both
}
.spc-gallery-page > .mt_title_ct_c .space_ct{display:none}
.spc-gallery-page > .mt_title_ct_c .td_ct_name{margin:0;padding:0}
.spc-gallery-page .mt_content_ct_c{display:block;width:100%;max-width:none}
.spc-gallery-page .LV_Frame{margin:0 0 44px;clear:both}
.spc-gallery-page .spc-gallery-heading{
  display:flex;align-items:center;gap:12px;width:100%;min-height:0;height:auto;
  float:none;margin:0 0 20px;padding:0 0 13px;
  background:none;border:0;border-bottom:1px solid #dcecf5;box-shadow:none
}
.spc-gallery-page .spc-gallery-heading::before{
  content:"";flex:none;width:5px;height:25px;border-radius:5px;
  background:linear-gradient(180deg,#0071ba,#00b4ce)
}
.spc-gallery-page .spc-gallery-heading a{
  color:#00649f;font-size:19px;line-height:1.4;font-weight:750;
  text-decoration:none;text-transform:none;background:none;box-shadow:none;padding:0;margin:0
}
.spc-gallery-page .spc-gallery-heading .Xemtatca{margin-left:auto;font-size:13px;font-weight:650;color:#0085b8}
.spc-gallery-page .tt_List_gallery{display:block;width:100%;height:auto;margin:0;padding:0}
.spc-gallery-page .spc-gallery-grid{
  display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:30px;grid-auto-flow:row dense;align-items:stretch
}
.spc-gallery-page .spc-gallery-count-1{grid-template-columns:minmax(0,480px)}
.spc-gallery-page .spc-gallery-count-2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:780px}
.spc-gallery-page .spc-gallery-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.spc-gallery-page .spc-gallery-count-5,.spc-gallery-page .spc-gallery-count-6,.spc-gallery-page .spc-gallery-count-7{grid-template-columns:repeat(3,minmax(0,1fr))}
.spc-gallery-page .spc-gallery-has-feature .tt_List_gallery_cl:first-child{
  grid-column:span 2;grid-row:span 2;aspect-ratio:auto;min-height:0;max-width:100%
}
.spc-gallery-page .tt_List_gallery_cl{
  position:relative;display:block;float:none;width:100%;min-width:0;height:auto;
  aspect-ratio:16/9;margin:0;padding:0;overflow:hidden;
  border:1px solid #d7eaf4;border-radius:16px;background:#f0f7fb;
  box-shadow:0 4px 16px rgba(0,77,119,.06);
  transition:transform .85s cubic-bezier(.22,1,.36,1),box-shadow .85s ease,border-color .85s ease
}
.spc-gallery-page .tt_List_gallery_cl_ct,
.spc-gallery-page .tt_List_gallery_cl_img,
.spc-gallery-page .tt_List_gallery_cl_img a,
.spc-gallery-page .tt_List_gallery_cl_img figure{
  display:block;float:none;width:100%;height:100%;margin:0;padding:0;
  border:0;box-shadow:none;background:transparent;overflow:hidden
}
.spc-gallery-page .tt_List_gallery_cl_img a{position:relative;cursor:zoom-in}
.spc-gallery-page .tt_List_gallery_cl_img img{
  display:block;float:none;width:100%;height:100%;max-width:none;
  margin:0;padding:0;border:0;border-radius:0;
  object-fit:cover;object-position:center;image-rendering:auto;
  transform:scale(1);transform-origin:center center;backface-visibility:hidden;
  transition:transform .9s cubic-bezier(.22,1,.36,1)
}
.spc-gallery-page .tt_List_gallery_cl_img figure::before{display:none}
.spc-gallery-page .tt_List_gallery_cl_img a::after{
  content:"Xem ảnh ↗";position:absolute;right:12px;bottom:12px;padding:8px 12px;
  border-radius:22px;background:rgba(0,100,159,.88);color:white;
  font:600 12px Arial,sans-serif;opacity:0;transform:translateY(6px);
  transition:opacity .5s ease,transform .5s ease;pointer-events:none
}
@media(hover:hover) and (pointer:fine){
  .spc-gallery-page .tt_List_gallery_cl:hover,
  .spc-gallery-page .tt_List_gallery_cl:focus-within{
    transform:translateY(-5px);border-color:#87d0e9;
    box-shadow:0 15px 30px rgba(0,89,143,.14)
  }
  .spc-gallery-page .tt_List_gallery_cl:hover .tt_List_gallery_cl_img img,
  .spc-gallery-page .tt_List_gallery_cl:focus-within .tt_List_gallery_cl_img img{transform:scale(1.045)}
  .spc-gallery-page .tt_List_gallery_cl:hover img{transform:scale(1.045)}
  .spc-gallery-page .tt_List_gallery_cl:hover a::after,
  .spc-gallery-page .tt_List_gallery_cl:focus-within a::after{opacity:1;transform:translateY(0)}
}
@media(max-width:1050px){
  .spc-gallery-page .spc-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
}
@media(max-width:700px){
  .spc-gallery-page{width:calc(100% - 32px);padding-top:0}
  .spc-gallery-page .spc-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .spc-gallery-page .spc-gallery-has-feature .tt_List_gallery_cl:first-child{
    grid-column:span 2;grid-row:auto;aspect-ratio:16/9
  }
  .spc-gallery-page .spc-gallery-heading a{font-size:17px}
}
@media(max-width:420px){.spc-gallery-page .spc-gallery-grid{gap:10px}.spc-gallery-page .tt_List_gallery_cl{border-radius:12px}}
@media(prefers-reduced-motion:reduce){
  .spc-gallery-page .tt_List_gallery_cl,
  .spc-gallery-page .tt_List_gallery_cl_img img,
  .spc-gallery-page .tt_List_gallery_cl_img a::after{transition:none}
}
