.homepage-carousel{background:#e9eef5;isolation:isolate}
.homepage-slide{position:absolute;inset:0;touch-action:pan-y pinch-zoom}
.homepage-slide[data-swipe]{cursor:grab;user-select:none;-webkit-user-select:none}
.homepage-slide[data-dragging]{cursor:grabbing}
.homepage-photo{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.homepage-photo-status{position:absolute;top:18px;left:18px;right:18px;width:fit-content;max-width:calc(100% - 36px);padding:10px 14px;border-radius:12px;background:#ffffffef;color:#34445c;font-size:13px;z-index:1}
.homepage-photo-status[hidden]{display:none}
.homepage-retry{border:0;background:none;color:#1559ef;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
.homepage-photo-footer{position:absolute;bottom:18px;left:18px;right:18px;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.homepage-photo-footer>[data-photo-controls]:empty{display:none}
.homepage-photo-footer>[data-photo-controls]{max-width:100%;pointer-events:auto}
.homepage-photo-caption{box-sizing:border-box;max-width:100%;width:fit-content;margin:0;padding:11px 18px;border:1px solid #ffffff38;border-radius:14px;background:#1421387a;color:#fff;font-size:13px;font-weight:500;line-height:1.55;text-align:center;overflow-wrap:anywhere;text-shadow:0 1px 3px #0009;backdrop-filter:blur(8px) brightness(.8);-webkit-backdrop-filter:blur(8px) brightness(.8);pointer-events:auto}
.homepage-carousel-controls{display:flex;align-items:center;gap:10px;max-width:100%;padding:6px;border:1px solid #ffffff38;border-radius:100px;background:#1421387a;color:#fff;text-shadow:0 1px 3px #0009;backdrop-filter:blur(8px) brightness(.8);-webkit-backdrop-filter:blur(8px) brightness(.8)}
.homepage-carousel-controls button{border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;min-width:40px;height:40px;padding:0;font:28px/1 Arial}
.homepage-carousel-controls button:hover{background:#ffffff24}
.homepage-carousel-controls button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.homepage-dots{display:flex;align-items:center;gap:0}
.homepage-dots button{min-width:22px;width:22px;height:40px;display:grid;place-items:center}
.homepage-dots span{width:6px;height:6px;border-radius:99px;background:#ffffff80}
.homepage-dots [aria-current=true] span{background:#fff;width:14px}
.homepage-counter{font-size:12px;white-space:nowrap;min-width:34px;text-align:center}
.homepage-admin-heading{align-items:flex-start;gap:20px}.homepage-admin-heading p{margin-bottom:0;max-width:600px}
.homepage-upload{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px dashed #b9cbe9;border-radius:16px;background:#f5f8ff;padding:20px;margin:24px 0}
.homepage-upload p{margin:5px 0 0;max-width:580px;font-size:13px}.homepage-upload .btn{flex-shrink:0}
.homepage-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.homepage-photo-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;min-width:0;background:#fff}
.homepage-admin-preview{position:relative;aspect-ratio:5/4;background:#e9eef5;overflow:hidden}
.homepage-photo-order{position:absolute;top:12px;left:12px;padding:6px 10px;background:#fffffff2;border-radius:8px;font-size:12px;font-weight:700}
.homepage-photo-fields{padding:16px}.homepage-photo-fields label{display:block;font-size:12px}.homepage-photo-fields input{width:100%;margin-top:7px;min-width:0}
.homepage-photo-actions{display:flex;align-items:center;gap:8px;margin-top:14px;flex-wrap:wrap}.homepage-photo-actions .btn.small{padding:8px 12px}.homepage-photo-actions .text-btn{margin-left:auto;font-size:12px;color:#99504d}
.homepage-save{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.homepage-save>span{margin-right:auto;font-size:13px}
@media(max-width:1250px){.homepage-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.homepage-admin-grid{grid-template-columns:1fr}.homepage-upload,.homepage-admin-heading{flex-direction:column;align-items:stretch}.homepage-save .btn{flex:1}.homepage-save>span{width:100%}.homepage-carousel-controls{gap:4px}.homepage-dots button{min-width:18px;width:18px}.homepage-counter{font-size:11px}.homepage-carousel-controls button{min-width:36px}.homepage-dots button{min-width:18px}}
.homepage-photo-fields input{box-sizing:border-box;border:1px solid #d7e0ef;border-radius:10px;padding:11px 12px;background:#fff;color:#172642;font:inherit;font-size:13px;line-height:1.5;min-height:42px}
.homepage-photo-fields input:focus{outline:3px solid #b5cbff;outline-offset:2px;border-color:#769bff}
.public-hero>.homepage-carousel{aspect-ratio:auto;min-height:400px}
@media(max-width:1150px){.public-hero>.homepage-carousel{aspect-ratio:8/5;min-height:0}}
@media(max-width:650px){.public-hero>.homepage-carousel{aspect-ratio:auto}.homepage-carousel .homepage-slide{position:relative;aspect-ratio:8/5}.homepage-photo-footer{position:relative;inset:auto;padding:12px;background:#edf2f9;gap:10px}.homepage-photo-caption{width:100%;padding:10px 13px;font-size:12px;box-shadow:none}}
@media(max-width:430px){.homepage-dots button{min-width:14px;width:16px}.homepage-carousel-controls .homepage-counter{position:absolute;width:1px;height:1px;min-width:0;padding:0;overflow:hidden;clip-path:inset(50%)}}
@media(min-width:651px) and (hover:hover) and (pointer:fine){
 .homepage-photo-footer{opacity:0;transform:translateY(6px)}
 .homepage-photo-footer>[data-photo-controls],.homepage-photo-caption{pointer-events:none}
 .homepage-carousel:hover .homepage-photo-footer,.homepage-carousel:focus-within .homepage-photo-footer{opacity:1;transform:none}
 .homepage-carousel:hover .homepage-photo-footer>[data-photo-controls],.homepage-carousel:focus-within .homepage-photo-footer>[data-photo-controls],.homepage-carousel:hover .homepage-photo-caption,.homepage-carousel:focus-within .homepage-photo-caption{pointer-events:auto}
}
@media(prefers-reduced-motion:reduce){.homepage-photo-footer{transition:none}}

.homepage-random-option{display:flex;align-items:flex-start;gap:12px;cursor:pointer;margin:24px 0 0;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:#f8faff}
.homepage-random-option input{width:20px;height:20px;flex-shrink:0;margin:2px 0 0;accent-color:#1559ef;cursor:pointer}
.homepage-random-option strong{display:block;font-size:14px}.homepage-random-option small{display:block;margin-top:5px;color:var(--muted);font-size:13px;line-height:1.6}
.homepage-random-option:focus-within{outline:3px solid #b5cbff;outline-offset:2px}
