@charset "UTF-8";

/* ===== LOADER ANIMATION ===== */
#splash {
  background: #EE4036;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: 
    bgStay 1s ease-out forwards,
    bgSlideUp 1s ease-in 1s forwards;
}

#loader {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%,0);
}

/* RESTORED THE AIRPLANE LINES */
#loader:after {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -8px;
  bottom: -170px;
  width: 3px;
  background: #fff;
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
  height: 200px;
}

#loader:before {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: 8px;
  bottom: -190px;
  width: 3px;
  background: #000;
  background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 100%);
  height: 200px;
}

#splash .anim {
  height: 100%;
  position: absolute;
  left: 50%;
  width: 100px;
  transform: translate(-50%,100%);
  animation: planeRise 3s ease-out forwards;
}

@keyframes planeRise {
  0% { transform: translate(-50%,110%); }
  50% { transform: translate(-50%,50%); }
  100% { transform: translate(-50%,0%); }
}

@keyframes bgStay {
  0%, 100% { transform: translateY(0); }
}

@keyframes bgSlideUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}


/* ====== MUSEUM WALL GALLERY ====== */
body {
  background-color: #E6E6E6;
}

/* Masonry column layout - MOBILE FIRST */
.gallery {
  column-count: 2;    /* mobile: 2 columns */
  column-gap: 20px;   /* reduced horizontal spacing for mobile */
  padding: 20px 15px 15px; /* reduced padding for mobile */
  max-width: 1600px;
  margin: 0 auto;
  transform: translateZ(0); /* ADDED THIS LINE ONLY */
}

/* Frame styling - MOBILE */
.frame {
  background: #fff;
  padding: 6px; /* reduced by half for mobile */
  border: 8px solid #111; /* reduced by half for mobile */
  
  box-shadow: 
    0 2px 6px rgba(0,0,0,0.5), /* reduced shadow for mobile */
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 1px 0 0 rgba(255,255,255,0.1),
    inset -1px 0 0 rgba(0,0,0,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  break-inside: avoid;
  margin-bottom: 20px; /* reduced vertical spacing for mobile */
  position: relative; /* ADDED THIS LINE ONLY */
  z-index: 1; /* ADDED THIS LINE ONLY */
}

.frame:hover {
  transform: scale(1.02);
  box-shadow:
    0 4px 11px rgba(0,0,0,0.6), /* reduced shadow for mobile */
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 1px 0 0 rgba(255,255,255,0.15),
    inset -1px 0 0 rgba(0,0,0,0.6),
    inset 0 -1px 0 rgba(0,0,0,0.8);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* TABLET STYLES */
@media (min-width: 768px) {
  .gallery {
    column-count: 3;
    column-gap: 30px; /* slightly reduced for tablet */
    padding: 30px 20px 20px;
  }
  
  .frame {
    padding: 9px; /* intermediate size for tablet */
    border: 10px solid #111; /* intermediate size for tablet */
    margin-bottom: 30px; /* intermediate size for tablet */
    box-shadow: 
      0 3px 9px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,255,255,0.2),
      inset 1px 0 0 rgba(255,255,255,0.1),
      inset -1px 0 0 rgba(0,0,0,0.5),
      inset 0 -1px 0 rgba(0,0,0,0.7);
  }
  
  .frame:hover {
    box-shadow:
      0 6px 16px rgba(0,0,0,0.6),
      inset 0 1px 0 rgba(255,255,255,0.25),
      inset 1px 0 0 rgba(255,255,255,0.15),
      inset -1px 0 0 rgba(0,0,0,0.6),
      inset 0 -1px 0 rgba(0,0,0,0.8);
  }
}

/* DESKTOP STYLES */
@media (min-width: 1200px) {
  .gallery {
    column-count: 4;
    column-gap: 40px; /* original spacing for desktop */
    padding: 40px 20px 20px; /* original padding for desktop */
  }
  
  .frame {
    padding: 12px; /* original size for desktop */
    border: 12px solid #111; /* original size for desktop */
    margin-bottom: 40px; /* original spacing for desktop */
    box-shadow: 
      0 4px 12px rgba(0,0,0,0.5),
      inset 0 1px 0 rgba(255,255,255,0.2),
      inset 1px 0 0 rgba(255,255,255,0.1),
      inset -1px 0 0 rgba(0,0,0,0.5),
      inset 0 -1px 0 rgba(0,0,0,0.7);
  }
  
  .frame:hover {
    box-shadow:
      0 8px 22px rgba(0,0,0,0.6),
      inset 0 1px 0 rgba(255,255,255,0.25),
      inset 1px 0 0 rgba(255,255,255,0.15),
      inset -1px 0 0 rgba(0,0,0,0.6),
      inset 0 -1px 0 rgba(0,0,0,0.8);
  }
}