.home-gallery{padding:54px 0 10px;background:#fffaf2;border-block:1px solid #ebddc8}
.home-gallery [hidden],.home-gallery[hidden]{display:none!important}.home-gallery .container{width:calc(100% - clamp(32px,5vw,100px));max-width:none}
.gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}
.gallery-heading .eyebrow{color:#9b753b;letter-spacing:2.5px;font-size:12px;margin:0 0 9px}
.gallery-heading h2{font-size:clamp(30px,3.2vw,46px);line-height:1.15;color:#9e0a1d;margin:0 0 10px}
.gallery-heading p:not(.eyebrow){font-size:17px;line-height:1.5;color:#766451;max-width:560px}
.gallery-filters{display:flex;gap:7px;flex-shrink:0;flex-wrap:wrap}
.gallery-filters button{border:1px solid #dfccb0;background:transparent;color:#725037;border-radius:24px;padding:9px 19px;font-size:16px;min-height:42px;cursor:pointer}
.gallery-filters button[aria-pressed=true]{background:#a80720;border-color:#a80720;color:#fff}
.gallery-filters button:hover{border-color:#a80720}
.gallery-grid{display:grid;gap:8px;padding:0 8px;line-height:0}
.gallery-photo-row{display:flex;gap:inherit;min-width:0}
.gallery-photo-row .gallery-card{flex-basis:0;min-width:0;margin:0;height:100%}
.gallery-photo-row .gallery-open,.gallery-photo-row .gallery-open img{width:100%;height:100%}
.gallery-photo-row .gallery-open img{object-fit:contain}
.gallery-photo-row .gallery-video-placeholder{height:100%;min-height:0;max-height:none;aspect-ratio:auto;padding:16px;font-size:12px;line-height:1.4;text-align:center}
.gallery-photo-actions{display:flex;flex-direction:column;align-items:center;gap:14px;padding:28px 16px 32px}
.gallery-photo-actions p{font-size:16px;line-height:1.4;color:#755838;letter-spacing:1px}
.gallery-photo-actions .button{min-height:48px;padding:13px 30px;border:1px solid #a90720;font-size:18px;font-weight:700!important;box-shadow:0 5px 16px #6f071b20}
.gallery-card{break-inside:avoid;margin:0 0 8px;display:inline-block;width:100%;vertical-align:top;background:#e9ddc9;border:0;border-radius:7px;overflow:hidden}
.gallery-open{display:block;position:relative;width:100%;border:0;padding:0;background:#e9ddc9;cursor:zoom-in;overflow:hidden;text-align:left;color:#fff}
.gallery-open img{display:block;width:100%;height:auto;transition:transform .3s}
.gallery-open:hover img{transform:scale(1.025)}
.gallery-open:focus-visible{outline:3px solid #f8cb79;outline-offset:-5px}
.gallery-open.video-tile{cursor:pointer;background:linear-gradient(145deg,#7d0c20,#142b31);min-height:180px}
.gallery-open.video-tile img{aspect-ratio:var(--gallery-ratio,16/9);object-fit:contain;min-height:180px;max-height:580px}
.gallery-video-placeholder{display:grid;place-items:center;aspect-ratio:var(--gallery-ratio,16/9);min-height:200px;max-height:580px;background:radial-gradient(ellipse at top right,#bb9a5533,transparent);font-size:15px;letter-spacing:3px;padding-top:90px}
.gallery-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:62px;height:62px;border:1px solid #ffe7b9;border-radius:50%;background:#7c0e20ce;color:#fff1d1;font-size:28px;padding-left:4px;box-shadow:0 3px 24px #0003}
.gallery-media-label{position:absolute;bottom:12px;right:12px;padding:5px 11px;border-radius:20px;background:#261b15bd;color:white;font-size:12px;line-height:1.2;letter-spacing:1px}
.gallery-films{margin-top:36px;padding:52px clamp(16px,4vw,72px) 60px;position:relative;background:radial-gradient(ellipse at 50% 0,#97293855,transparent 65%),url("/assets/images/mobile-nav-pattern.svg?v=aabba57aa92c2e02678c1f5b9f20c14d75c9e445") center/130px,#390b16;color:#fff0d3;border-block:1px solid #c89f5e}
.gallery-films-heading{text-align:center;margin-bottom:34px}
.gallery-films-heading .eyebrow{font-size:13px;color:#e1bc7a;letter-spacing:3px;margin:0 0 12px}
.gallery-films-heading h2{font-size:clamp(32px,3.3vw,52px);line-height:1.2;color:#fff1da}
.gallery-gold-rule{display:block;width:100px;height:1px;background:#d8b06f;margin:22px auto 0;position:relative}
.gallery-gold-rule::after{content:'';position:absolute;left:46px;top:-3px;width:7px;height:7px;transform:rotate(45deg);background:#e9c987}
.gallery-video-rows{display:grid;gap:28px;max-width:1640px;margin:auto}
.gallery-video-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.gallery-video-row .gallery-card{display:flex;align-items:center;justify-content:center;min-width:0;margin:0;background:#140c0a;border:1px solid #d6af715c;border-radius:10px;box-shadow:0 12px 36px #14040844}
.gallery-video-row .video-tile{aspect-ratio:var(--gallery-ratio,16/9);max-height:540px;min-height:200px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#461d19,#160c0b);line-height:1.4}
.gallery-video-row .video-tile img{width:100%;height:100%;aspect-ratio:auto;min-height:0;max-height:540px;object-fit:contain}
.gallery-video-row .gallery-portrait-film .video-tile{max-width:340px}
.gallery-video-row .gallery-video-placeholder{width:100%;height:100%;min-height:200px;aspect-ratio:inherit;color:#f2d6a7;font-size:13px}
.gallery-video-row .gallery-play{width:72px;height:72px;font-size:32px;border-color:#f6d49a;background:#3b101adb;box-shadow:0 0 0 8px #ecd3a61c}
.gallery-video-row .gallery-media-label{left:50%;right:auto;bottom:20px;transform:translateX(-50%);background:#160b0cc9;letter-spacing:2px;white-space:nowrap}
.gallery-film-ornament{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;padding:38px 24px;min-height:260px;border:1px solid #d7b27375;border-radius:10px;background:radial-gradient(ellipse at center,#8f263146,transparent),url("/assets/images/thai-pattern.svg?v=1f5bdc1c4ae7877ad431301b0c071b0f1195b846") center/180px,#48111b;overflow:hidden}
.gallery-film-ornament::before{content:'';position:absolute;inset:12px;border:1px solid #d6ae6b4d;pointer-events:none}
.gallery-film-ornament::after{content:'';position:absolute;inset:22px;background:url("/assets/../admin/assets/images/corner.svg") left top/66px no-repeat;opacity:.8;pointer-events:none}
.gallery-lotus{width:clamp(90px,10vw,150px);aspect-ratio:1;display:block;background:url("/assets/images/gallery-lotus.svg?v=05613d5d7aa4956ea8451cbad90f0714ca65fc8b") center/contain no-repeat;margin-bottom:18px}
.gallery-ornament-name{font-size:clamp(32px,3.5vw,54px);line-height:1.15;color:#f4d395}
.gallery-ornament-note{font-size:12px;letter-spacing:3px;color:#e5c894;margin-top:12px;text-align:center}
.gallery-status{text-align:center;font-size:18px;color:#7b5940;padding:25px}.gallery-status:empty{display:none}
.gallery-dialog{width:min(1050px,calc(100% - 40px));max-height:calc(100dvh - 32px);padding:0;background:#161a1b;color:#fff8e8;border:1px solid #c7a469;border-radius:14px;overflow:auto}
.gallery-dialog::backdrop{background:#090808dc;backdrop-filter:blur(5px)}
.gallery-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 20px;border-bottom:1px solid #ffffff20}
.gallery-dialog-top h2{margin:0;font-size:22px;color:#fff3d7;line-height:1.3}
.gallery-dialog-close{border:1px solid #bba17c;background:transparent;color:#fff3d7;border-radius:50%;width:40px;height:40px;font-size:28px;line-height:1;flex-shrink:0;cursor:pointer}
.gallery-viewer{display:flex;align-items:center;justify-content:center;background:#0d1011;min-height:160px}
.gallery-viewer img,.gallery-viewer video{display:block;width:auto;max-width:100%;max-height:70dvh;object-fit:contain}
.gallery-viewer iframe{display:block;width:100%;aspect-ratio:16/9;max-height:70dvh;border:0}
.gallery-dialog-caption{margin:0;padding:16px 22px;color:#e4d4bf;font-size:17px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}.gallery-dialog-caption:empty{display:none}
.gallery-view-error{padding:35px;text-align:center;line-height:1.6}.gallery-view-error a{text-decoration:underline;color:#ffdfa0}
body.gallery-view-open{overflow:hidden}
@media(max-width:900px){.gallery-heading{align-items:flex-start;flex-direction:column;gap:20px}.gallery-video-row{gap:14px}.gallery-films{padding-inline:18px}}
@media(max-width:600px){.home-gallery{padding:32px 0 6px}.gallery-grid{gap:6px;padding-inline:6px}.gallery-card{margin-bottom:6px;border-radius:5px}.gallery-heading{margin-bottom:20px}.gallery-heading h2{font-size:32px}.gallery-heading p:not(.eyebrow){font-size:16px}.gallery-filters button{font-size:15px;padding-inline:16px}.gallery-dialog{width:calc(100% - 20px)}.gallery-dialog-top{padding:12px}.gallery-dialog-top h2{font-size:19px}.gallery-films{margin-top:22px;padding:34px 12px}.gallery-films-heading{margin-bottom:26px}.gallery-video-row{grid-template-columns:1fr;gap:12px}.gallery-video-rows{gap:24px}.gallery-film-ornament{min-height:180px;padding:26px 18px}.gallery-lotus{width:70px;margin-bottom:10px}.gallery-ornament-name{font-size:30px}.gallery-ornament-note{font-size:10px;margin-top:8px}.gallery-film-ornament::after{background-size:44px}.gallery-video-row .video-tile{max-height:480px}.gallery-video-row .video-tile img{max-height:480px}.gallery-video-row .gallery-portrait-film .video-tile{max-width:270px}}
@media(prefers-reduced-motion:reduce){.gallery-open img{transition:none}.gallery-open:hover img{transform:none}}
