/* LE DELTA V285 — GENUINE PHOTOGRAPHIC ALBUMS.
   Keeps V284's archival frame, sheet layering, typography and date finder,
   but restores the V274 photographic cover treatment. NO event posters here. */
@media(min-width:761px){
 html body.delta-home #albums #home-album-preview.delta-home-albums-grid{
   display:grid!important;
   grid-template-columns:minmax(0,1.24fr) repeat(3,minmax(0,1fr))!important;
   grid-template-rows:415px!important;
   grid-auto-rows:415px!important;
   gap:19px!important;
   align-items:stretch!important;
   min-height:0!important;
   padding:10px 7px 16px!important;
   overflow:visible!important
 }
 html body.delta-home #albums #home-album-preview .delta-home-album-slot:nth-child(n){
   grid-column:auto!important;grid-row:auto!important;
   align-self:stretch!important;height:100%!important;
   width:100%!important;min-width:0!important
 }
 html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child{
   height:100%!important;align-self:stretch!important
 }
 html body.delta-home #albums #home-album-preview[data-archive-count="3"]{
   grid-template-columns:minmax(0,1.22fr) repeat(2,minmax(0,1fr))!important
 }
 html body.delta-home #albums #home-album-preview[data-archive-count="2"]{
   grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important
 }
 html body.delta-home #albums #home-album-preview[data-archive-count="1"]{
   grid-template-columns:minmax(0,1fr)!important;
   grid-template-rows:430px!important
 }
 html body.delta-home #albums #home-album-preview[data-archive-count="1"] .delta-home-album-slot{
   grid-column:1/-1!important;grid-row:1!important
 }
}
/* The actual administrator-selected photo fills the whole card, like before. */
html body.delta-home #albums #home-album-preview .delta-home-album-slot-visual{
 position:relative!important;isolation:isolate!important;
 background:linear-gradient(130deg,#12233a,#090f1b)!important;
 overflow:hidden!important;
 border-radius:10px!important;
 border:1px solid rgba(211,213,210,.24)!important;
 box-shadow:0 13px 35px rgba(0,0,0,.27)!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot-thumb,
html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child .delta-home-album-slot-thumb,
html body.delta-home #albums #home-album-preview .delta-placeholder-logo{
 position:absolute!important;
 top:0!important;left:0!important;inset:0!important;
 z-index:0!important;
 display:block!important;
 width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
 padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;
 background:transparent!important;
 object-fit:cover!important;
 /* object-position remains from album.coverPosition, set inline by photos.js. */
 filter:saturate(.98) contrast(1.025) brightness(.96)!important;
 box-shadow:none!important;
 transform:scale(1)!important;
 transition:transform .55s cubic-bezier(.22,1,.36,1),filter .28s ease!important
}
/* A restrained light falloff supports labels without obscuring the cover. */
html body.delta-home #albums #home-album-preview .delta-home-album-slot-visual::after{
 content:''!important;
 display:block!important;
 position:absolute!important;inset:39% 0 0!important;
 z-index:1!important;pointer-events:none!important;
 background:linear-gradient(180deg,rgba(4,10,19,0),rgba(4,10,19,.32) 28%,rgba(4,10,19,.91) 100%)!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot-visual::before{
 display:none!important;content:none!important
}
/* Photographic captions, placed on the picture rather than in a thick folder footer. */
html body.delta-home #albums #home-album-preview .delta-home-album-slot-bottom,
html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child .delta-home-album-slot-bottom{
 position:absolute!important;z-index:3!important;
 inset:auto 0 0!important;
 width:100%!important;height:auto!important;min-height:0!important;
 display:flex!important;flex-direction:column!important;
 justify-content:flex-end!important;gap:0!important;
 padding:20px 17px 17px!important;
 margin:0!important;border:0!important;border-radius:0 0 9px 9px!important;
 background:transparent!important;
 clip-path:none!important;overflow:visible!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot-bottom::before,
html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child .delta-home-album-slot-bottom::before{
 content:'LE DELTA  /  ARCHIVE ' counter(delta-archive,decimal-leading-zero)!important;
 position:static!important;
 display:block!important;order:0!important;
 margin:0 0 9px!important;padding:0!important;
 color:#eed6ad!important;
 text-shadow:0 1px 7px rgba(0,0,0,.35)!important;
 font:800 9px/1.2 Manrope,system-ui,sans-serif!important;
 letter-spacing:.15em!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot-bottom>time{
 order:1!important;margin:0 0 6px!important;
 color:#d2dce8!important;
 text-shadow:0 1px 6px rgba(0,0,0,.45)!important;
 font:650 11px/1.2 Manrope,system-ui,sans-serif!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot-bottom>strong,
html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child .delta-home-album-slot-bottom>strong{
 order:2!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:2!important;overflow:hidden!important;
 margin:0!important;color:#fff!important;
 text-shadow:0 2px 12px rgba(0,0,0,.48)!important;
 font:500 clamp(25px,2.2vw,33px)/1.08 "Cormorant Garamond",Georgia,serif!important;
 letter-spacing:-.03em!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child .delta-home-album-slot-bottom>strong{
 font-size:clamp(30px,2.7vw,41px)!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot-bottom>small{
 display:flex!important;justify-content:space-between!important;align-items:center!important;
 order:3!important;gap:12px!important;
 margin:11px 0 0!important;padding:10px 0 0!important;
 border-top:1px solid rgba(236,236,237,.3)!important;
 color:#ecf1f6!important;
 text-shadow:0 1px 8px rgba(0,0,0,.35)!important;
 font:750 10px/1.3 Manrope,system-ui,sans-serif!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot-bottom>small b{
 color:#f0d4a0!important;font-weight:800!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot::before{
 inset:5px 7px -6px!important;background:#8f9baa!important;
 transform:rotate(1deg)!important;opacity:.7!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot::after{
 inset:6px 11px -4px!important;background:#b5b4ad!important;
 transform:rotate(-.7deg)!important;opacity:.75!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot-badge,
html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child .delta-home-album-slot-badge{
 position:absolute!important;z-index:4!important;
 top:15px!important;left:15px!important;right:auto!important;
 padding:7px 10px!important;border-radius:4px!important;
 border:1px solid rgba(238,215,175,.47)!important;
 background:rgba(8,19,31,.77)!important;
 color:#eed4a3!important;
 font:800 9px/1.15 Manrope,system-ui,sans-serif!important;
 letter-spacing:.13em!important
}
html body.delta-home #albums #home-album-preview .delta-home-album-slot:focus-visible{
 outline:2px solid #e6c991!important;outline-offset:8px!important
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 html body.delta-home #albums #home-album-preview .delta-home-album-slot.is-real:hover .delta-home-album-slot-thumb{
  transform:scale(1.035)!important;filter:saturate(1.07) brightness(1.035)!important
 }
 html body.delta-home #albums #home-album-preview .delta-home-album-slot.is-real:hover .delta-home-album-slot-visual{
  border-color:rgba(229,195,139,.66)!important;
  box-shadow:0 18px 37px rgba(0,0,0,.34)!important
 }
}
/* Less crowded 2×2 archive at tablet widths. */
@media(min-width:761px) and (max-width:1150px){
 html body.delta-home #albums #home-album-preview.delta-home-albums-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:370px 370px!important;grid-auto-rows:370px!important;
  gap:16px!important
 }
 html body.delta-home #albums #home-album-preview .delta-home-album-slot:nth-child(n){
  grid-column:auto!important;grid-row:auto!important
 }
 html body.delta-home #albums #home-album-preview[data-archive-count="1"]{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:390px!important
 }
 html body.delta-home #albums #home-album-preview[data-archive-count="2"]{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:390px!important
 }
}
/* Preserve swipe and preview of next album on phones. */
@media(max-width:760px){
 html body.delta-home #albums #home-album-preview.delta-home-albums-grid{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:15px!important;
  grid-template-columns:none!important;grid-template-rows:none!important;
  min-height:0!important;padding:8px 15px 18px 0!important
 }
 html body.delta-home #albums #home-album-preview .delta-home-album-slot:nth-child(n){
  grid-column:auto!important;grid-row:auto!important;
  flex:0 0 min(80vw,345px)!important;width:min(80vw,345px)!important;
  min-width:min(80vw,345px)!important;height:370px!important;min-height:370px!important;
  scroll-snap-align:start!important
 }
 html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child{
  flex-basis:min(83vw,355px)!important;width:min(83vw,355px)!important;
  min-width:min(83vw,355px)!important
 }
 html body.delta-home #albums #home-album-preview .delta-home-album-slot-bottom,
 html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child .delta-home-album-slot-bottom{
  padding:18px 17px 17px!important;height:auto!important;min-height:0!important
 }
 html body.delta-home #albums #home-album-preview .delta-home-album-slot-bottom>strong,
 html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child .delta-home-album-slot-bottom>strong{
  font-size:clamp(29px,8vw,35px)!important
 }
 html body.delta-home #albums #home-album-preview .delta-home-album-slot-thumb,
 html body.delta-home #albums #home-album-preview .delta-home-album-slot:first-child .delta-home-album-slot-thumb{
  inset:0!important;top:0!important;left:0!important;width:100%!important;height:100%!important;
  border:0!important
 }
}
/* This section has no fabricated photos when the real API returns zero albums. */
html body.delta-home #albums #home-album-preview[data-archive-count="0"]{
 display:block!important;min-height:0!important;
 padding:8px 4px 14px!important;overflow:visible!important
}
html body.delta-home #albums #home-album-preview .delta-home-albums-empty{
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:22px!important;min-height:230px!important;padding:28px!important;
 border-radius:10px!important
}
@media(max-width:760px){
 html body.delta-home #albums #home-album-preview .delta-home-albums-empty{
  min-width:0!important;width:100%!important;
  min-height:230px!important;gap:10px!important
 }
}
@media(prefers-reduced-motion:reduce){
 html body.delta-home #albums #home-album-preview .delta-home-album-slot-thumb{
  transition:none!important;transform:none!important
 }
}
