 :root {
   --bg: #0f1724;
   --card: #0b1220;
   --muted: #94a3b8;
   --accent: #38bdf8;
   --white: #ffffff;
 }

 * {
   box-sizing: border-box
 }

 body {
   margin: 0;
   font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
   background: linear-gradient(180deg, var(--bg) 0%, #071021 100%);
   color: var(--white);
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   padding: 32px;
   min-height: 100vh;
 }

 .container {
   max-width: 1100px;
   margin: 0 auto;
 }

 header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   margin-bottom: 20px;
 }

 header h1 {
   font-size: 20px;
   margin: 0;
   letter-spacing: 0.2px;
 }

 header p {
   margin: 0;
   color: var(--muted);
   font-size: 13px
 }

 .gallery {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 14px;
 }

 .card {
   position: relative;
   overflow: hidden;
   border-radius: 12px;
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
   box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
   cursor: pointer;
 }

 .card img {
   display: block;
   width: 100%;
   height: 220px;
   object-fit: cover;
   transition: transform .45s cubic-bezier(.2, .9, .3, 1);
   vertical-align: middle;
 }

 .card:hover img {
   transform: scale(1.05)
 }

 .overlay {
   position: absolute;
   left: 0;
   right: 0;
   bottom: 0;
   padding: 12px;
   background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
   color: var(--white);
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 8px;
   height: 100%;
 }

 .caption {
   align-self: flex-end;
   font-size: 14px;
   text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
 }

 .meta {
   font-size: 12px;
   color: var(--muted)
 }

 .lightbox {
   position: fixed;
   inset: 0;
   display: none;
   align-items: center;
   justify-content: center;
   background: rgba(2, 6, 23, 0.7);
   z-index: 1000;
   padding: 24px;
 }

 .lightbox.open {
   display: flex
 }

 .lightbox-content {
   max-width: 1000px;
   max-height: 90vh;
   width: 100%;
   position: relative;
   background: transparent;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .lightbox img {
   max-width: 100%;
   max-height: 90vh;
   object-fit: contain;
   border-radius: 8px
 }

 .close-btn {
   position: absolute;
   top: -10px;
   right: -10px;
   border-radius: 50%;
   background: var(--card);
   border: 1px solid rgba(255, 255, 255, 0.06);
   width: 36px;
   height: 36px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   cursor: pointer;
 }

 .nav-btn {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background: transparent;
   border: none;
   color: var(--white);
   font-size: 30px;
   padding: 8px;
   cursor: pointer;
   user-select: none;
 }

 .nav-prev {
   left: -10px
 }

 .nav-next {
   right: -10px
 }

 .badge {
   background: rgba(0, 0, 0, 0.45);
   padding: 6px 10px;
   border-radius: 999px;
   font-size: 12px
 }

 @media (max-width:900px) {
   .gallery {
     grid-template-columns: repeat(2, 1fr)
   }

   .card img {
     height: 180px
   }
 }

 @media (max-width:520px) {
   header {
     flex-direction: column;
     align-items: flex-start
   }

   .gallery {
     grid-template-columns: 1fr
   }

   .card img {
     height: 260px
   }
 }