/* Phase 11: Homepage gallery implementation and diary/events repair polish */
.homeGallerySection{position:relative;overflow:hidden}
.homeGallerySection:before{content:"";position:absolute;inset:8% 0 auto auto;width:360px;height:360px;border-radius:999px;background:radial-gradient(circle,rgba(214,178,94,.13),transparent 68%);filter:blur(4px);pointer-events:none}
.homeGalleryShell{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:18px;align-items:stretch;margin-top:28px}
.homeGalleryFeatured{min-height:370px;border-radius:30px;overflow:hidden;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);box-shadow:0 24px 70px rgba(0,0,0,.30)}
.homeGalleryCover{position:relative;width:100%;height:100%;min-height:370px;display:block;border:0;background:#060914;cursor:pointer;text-align:left;color:#fff;overflow:hidden}
.homeGalleryCover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s ease;filter:saturate(1.04) contrast(1.02)}
.homeGalleryCover:hover img{transform:scale(1.035)}
.homeGalleryCover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.76));z-index:1}
.homeGalleryCoverInfo{position:absolute;left:22px;right:22px;bottom:22px;z-index:2}
.homeGalleryBadge{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:rgba(214,178,94,.16);border:1px solid rgba(214,178,94,.34);color:#f6d384;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.homeGalleryCoverInfo h3{font-family:'Playfair Display',serif;margin:10px 0 4px;font-size:clamp(1.7rem,4vw,3rem);line-height:.98;color:#fff}
.homeGalleryCoverInfo p{margin:0;color:rgba(255,255,255,.78);line-height:1.55;max-width:620px}
.homeGalleryAlbumPanel{border:1px solid rgba(255,255,255,.12);border-radius:30px;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035));padding:18px;box-shadow:0 24px 70px rgba(0,0,0,.22);min-width:0}
.homeGalleryPanelHead{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
.homeGalleryPanelHead h3{margin:5px 0 0;font-family:'Playfair Display',serif;font-size:clamp(1.3rem,3vw,2rem);line-height:1;color:#fff}
.kicker.mini{font-size:10px;padding:6px 10px}.secondaryCta.small{padding:9px 12px;font-size:12px;white-space:nowrap}.primaryCta.compact{padding:11px 14px;font-size:13px}
.homeGalleryAlbums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:420px;overflow:auto;padding-right:3px}
.homeAlbumButton{position:relative;min-width:0;border:1px solid rgba(255,255,255,.12);background:rgba(5,8,15,.56);border-radius:20px;overflow:hidden;cursor:pointer;text-align:left;color:#fff;padding:0;transition:transform .2s ease,border-color .2s ease,background .2s ease}
.homeAlbumButton:hover,.homeAlbumButton.active{transform:translateY(-2px);border-color:rgba(214,178,94,.46);background:rgba(214,178,94,.08)}
.homeAlbumButton img{width:100%;height:118px;object-fit:cover;display:block;background:#070a12}
.homeAlbumButton div{padding:11px 12px}.homeAlbumButton strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.homeAlbumButton span{display:block;margin-top:4px;color:rgba(255,255,255,.62);font-size:12px}
.homeGalleryPhotosHead{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:26px 0 12px}.homeGalleryPhotosHead h3{margin:0;color:#fff;font-size:clamp(1.35rem,3vw,2rem)}.homeGalleryPhotosHead p{margin:5px 0 0;color:rgba(255,255,255,.62)}
.homeGalleryPhotoStrip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.homePhotoButton{position:relative;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);border-radius:22px;overflow:hidden;aspect-ratio:4/3;cursor:pointer;padding:0;color:#fff;text-align:left;box-shadow:0 18px 45px rgba(0,0,0,.18)}
.homePhotoButton img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}.homePhotoButton:hover img{transform:scale(1.045)}
.homePhotoButton span{position:absolute;left:0;right:0;bottom:0;padding:30px 12px 12px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.78));font-size:12px;color:#fff}
.homeGalleryModal{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.78);backdrop-filter:blur(10px)}.homeGalleryModal.open{display:flex}.homeGalleryModalBackdrop{position:absolute;inset:0}.homeGalleryModalCard{position:relative;width:min(1080px,100%);max-height:92vh;overflow:hidden;border-radius:26px;border:1px solid rgba(255,255,255,.18);background:#080b12;color:#fff;box-shadow:0 34px 120px rgba(0,0,0,.65)}.homeGalleryModalTop{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.1)}.homeGalleryModalTop h3{margin:4px 0 0}.homeGalleryModalTop small{color:rgba(255,255,255,.55);text-transform:uppercase;letter-spacing:.08em;font-weight:900}.homeGalleryModalBody{padding:14px;overflow:auto;max-height:calc(92vh - 74px)}.homeGalleryModalBody img{display:block;width:100%;max-height:74vh;object-fit:contain;border-radius:18px;background:#000}
/* Daily diary spacing repair */
.diaryPage .phase6Hero{padding:clamp(66px,7vw,96px) 0 clamp(22px,4vw,38px)}
.diaryPage .phase6Hero h1{margin-top:14px}.diaryPage main>.section{padding-top:clamp(18px,3vw,30px)!important}.diaryPage .diary-layout{gap:22px}.diaryPage .sectionTitle{margin-bottom:0}.diaryPage .phase6Toolbar{margin-top:2px;margin-bottom:12px}.diaryPage .phase6Stats{margin-bottom:14px}.diaryPage .diary-grid.phase6DiaryGrid{margin-top:4px;align-items:stretch}.diaryPage .diaryRecent{margin-top:26px}.diaryPage .diary-card.phase6DiaryCard{display:flex;flex-direction:column;justify-content:space-between}.diaryPage .diary-empty{margin-top:4px}.diaryPage .phase6HeroCard{align-self:stretch}
/* Clickable event calendar repair */
.cal-day{appearance:none;font:inherit;cursor:default}.cal-day.has-event{cursor:pointer}.cal-day.has-event:hover,.cal-day.selected{border-color:rgba(214,178,94,.72);box-shadow:0 0 0 3px rgba(214,178,94,.12);transform:translateY(-1px)}.cal-day.selected{background:rgba(214,178,94,.24);color:#fff}.calendar-selected-events{margin-top:14px;border-top:1px solid rgba(255,255,255,.1);padding-top:14px}.calendar-selected-events h4{margin:0 0 9px;color:#fff}.calendar-selected-events .day-event{display:block;padding:10px 11px;border-radius:14px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09);margin-top:8px;color:rgba(255,255,255,.78);text-decoration:none}.calendar-selected-events .day-event strong{display:block;color:#fff;font-size:13px}.calendar-selected-events .day-event span{display:block;margin-top:3px;color:rgba(255,255,255,.58);font-size:12px}.event-filter-note{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;padding:10px 12px;border:1px solid rgba(214,178,94,.24);background:rgba(214,178,94,.08);border-radius:16px;color:rgba(255,255,255,.78)}
@media(max-width:980px){.homeGalleryShell{grid-template-columns:1fr}.homeGalleryPhotoStrip{grid-template-columns:repeat(3,minmax(0,1fr))}.homeGalleryAlbums{max-height:none}}
@media(max-width:640px){.homeGalleryFeatured,.homeGalleryCover{min-height:280px}.homeGalleryShell{gap:12px;margin-top:18px}.homeGalleryAlbumPanel,.homeGalleryFeatured{border-radius:22px}.homeGalleryAlbums,.homeGalleryPhotoStrip{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.homeAlbumButton img{height:96px}.homeGalleryPhotosHead{align-items:flex-start;flex-direction:column}.homeGalleryPhotosHead .primaryCta{width:100%;text-align:center}.homeGalleryModal{padding:9px}.homeGalleryModalCard{border-radius:18px}.diaryPage .phase6Hero{padding:70px 0 24px}.diaryPage .phase6HeroGrid{gap:14px}.diaryPage .phase6HeroCard{display:none}.event-filter-note{align-items:flex-start;flex-direction:column}.event-filter-note .btn{width:100%;justify-content:center}}
@media(max-width:390px){.homeGalleryAlbums,.homeGalleryPhotoStrip{grid-template-columns:1fr}}
