* { box-sizing: border-box; }
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #202033; background: #f5f5f5; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; background: #f5f5f5; }
.gallery-header { width: min(100%, 1200px); padding: 24px 24px 0; text-align: center; }
.back-link { display: inline-block; float: left; color: #5a3caa; text-decoration: none; font-weight: 650; }
.eyebrow { margin: 30px 0 0; color: #5a3caa; letter-spacing: .18em; font-size: .78rem; font-weight: 800; }
.about-title { margin: 12px 0 8px; font-size: clamp(2.1rem, 7vw, 5.2rem); line-height: 1.05; font-weight: 900; letter-spacing: -.04em; background: linear-gradient(to bottom, rgb(90 60 170 / 70%), rgb(90 60 170 / 20%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro { color: #222dfc; margin: 0 auto; max-width: 620px; }
.gallery-main { width: min(100%, 1100px); padding: 28px 20px 40px; display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 28px; align-items: start; }
.upload-panel { padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.07); }
.upload-panel h2, .gallery-section h2 { margin: 0 0 18px; }
#uploadForm { display: grid; gap: 10px; }
#uploadForm label { font-size: .9rem; font-weight: 650; color: #48485c; }
#uploadForm input[type="file"], #uploadForm input[type="text"] { width: 100%; padding: 11px; border: 1px solid #d9d9e5; border-radius: 9px; background: #fff; font: inherit; }
#uploadButton, .action-button, .danger-button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 9px; padding: 11px 14px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
#uploadButton, .action-button { background: #5a3caa; color: #fff; }
#uploadButton:disabled { opacity: .6; cursor: wait; }
.status { min-height: 1.3em; color: #5d5d70; overflow-wrap: anywhere; }
.privacy-note { color: #777789; font-size: .82rem; line-height: 1.5; }
.gallery-section { min-width: 0; }
.carousel-container { position: relative; height: 390px; perspective: 1000px; margin-top: 10px; }
.carousel-track { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; position: relative; transform-style: preserve-3d; }
.photo-card { position: absolute; width: min(250px, 58vw); height: 320px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 38px rgba(0,0,0,.16); transition: transform .45s ease, opacity .45s ease, filter .45s ease; cursor: pointer; border: 0; padding: 0; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card.center { z-index: 5; transform: scale(1.04); opacity: 1; }
.photo-card.left-1 { z-index: 4; transform: translateX(-135px) scale(.84); opacity: .8; }
.photo-card.right-1 { z-index: 4; transform: translateX(135px) scale(.84); opacity: .8; }
.photo-card.left-2 { z-index: 2; transform: translateX(-230px) scale(.68); opacity: .5; }
.photo-card.right-2 { z-index: 2; transform: translateX(230px) scale(.68); opacity: .5; }
.photo-card.hidden { opacity: 0; pointer-events: none; transform: scale(.5); }
.nav-arrow { position: absolute; z-index: 8; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: #5a3caa; color: white; font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 5px 16px #0002; }
.nav-arrow.left { left: 0; } .nav-arrow.right { right: 0; }
.photo-info { margin: 8px auto 0; text-align: center; max-width: 600px; }
.photo-info h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.photo-info p { color: #777789; margin: 0 0 14px; font-size: .9rem; }
.photo-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.danger-button { background: #fff0f0; color: #a32323; border: 1px solid #edcaca; }
.empty-state { padding: 34px 18px; border: 2px dashed #d6d2e5; border-radius: 16px; text-align: center; color: #6b687c; }
footer { padding: 0 20px 28px; } footer a { color: #5a3caa; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .gallery-header { padding: 20px 16px 0; }
  .gallery-main { grid-template-columns: 1fr; padding: 24px 16px; }
  .upload-panel { order: 1; }
  .gallery-section { order: 0; }
  .carousel-container { height: 340px; }
  .photo-card { height: 270px; width: min(220px, 62vw); }
  .photo-card.left-1 { transform: translateX(-90px) scale(.8); }
  .photo-card.right-1 { transform: translateX(90px) scale(.8); }
  .photo-card.left-2 { transform: translateX(-145px) scale(.65); }
  .photo-card.right-2 { transform: translateX(145px) scale(.65); }
}
