
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --left-pad: 96px;
  --top-pad: 34px;
  --title-size: 44px;

  --card-size: 520px;
  --card-radius: 18px;

  --glass-bg: rgba(255,255,255,0.10);
  --glass-bd: rgba(255,255,255,0.18);

  --text-shadow: 0 3px 0 rgba(0,0,0,0.70);
}

html, body{
  height: 100%;
  background: #000;
}

body{
  min-height: 100vh;
  font-family: "Press Start 2P", monospace;
  color: #fff;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
}


.logo-link{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: inline-block;
}

.logo-img{
  width: 120px;
  height: auto;
  transition: transform 0.18s ease;
}

.logo-link:hover .logo-img{
  transform: scale(1.10);
}

.topbar{
  padding-top: var(--top-pad);
  padding-left: var(--left-pad);
}

.page-title{
  font-size: var(--title-size);
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: var(--text-shadow);
}

.content{
  padding-left: var(--left-pad);
  padding-top: 60px;
  padding-right: 28px;
  padding-bottom: 80px;
}

.gallery{
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 26px;
  max-width: 1200px;
  align-items: start;
}

.art-card{
  width: 100%;
  max-width: var(--card-size);
  aspect-ratio: 1 / 1;
  border-radius: var(--card-radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 46% 54%;
  transition: transform 0.18s ease;
}

.art-card:hover{
  transform: scale(1.02);
}

.art-thumb{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
    padding: 18px;
}

.art-thumb-btn{
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.art-thumb-btn .art-media{
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  display: block;
  transition: transform 0.18s ease;
}

.art-thumb-btn img.art-media{ object-fit: cover; }
.art-thumb-btn video.art-media{
  object-fit: contain;
  background: #000;
}

.art-thumb-btn:hover .art-media{
  transform: scale(1.03);
}

.multi-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 10px;
  line-height: 1;
  text-shadow: var(--text-shadow);
  display: none;
}

.multi-badge.show{
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.stack-icon{
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255,255,255,0.65);
  position: relative;
  border-radius: 2px;
}

.stack-icon::before{
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px;
}

.art-info{
  padding: 22px 22px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.art-title{
  font-size: 14px;
  line-height: 1.35;
  text-shadow: var(--text-shadow);
}

.art-meta{
  font-size: 10px;
  opacity: 0.95;
  line-height: 1.6;
  text-shadow: var(--text-shadow);
}

.art-desc{
  font-size: 10px;
  line-height: 1.8;
  opacity: 0.95;
  text-shadow: var(--text-shadow);
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.18);
}

.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
    padding: 24px;
  z-index: 999;
}

.modal.is-open{
  display: flex;
}

.modal-media-wrap{
  width: min(92vw, 1200px);
  height: min(88vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media img,
.modal-media video{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  image-rendering: auto;
}

.modal-media video{
  background: #000;
}

.modal-close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  font-size: 30px;
  cursor: pointer;
  color: white;
  background: rgba(255,255,255,0.12);
}

.modal-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 14px;
  font-size: 34px;
  cursor: pointer;
  color: white;
  background: rgba(255,255,255,0.12);
}

.modal-prev{ left: 18px; }
.modal-next{ right: 18px; }

.modal-counter{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  font-size: 10px;
}

.hidden{
  display: none !important;
}

@media (max-width: 820px){
  .modal{
    padding: 14px;
  }

  .modal-media-wrap{
    width: min(96vw, 1200px);
    height: 78vh;
  }
}