* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: 'Inter', sans-serif;
}

/* PAGE */
.page {
  margin-top: 70px;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: #f2f2f2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  z-index: 10;
}

.left-header {
  display: flex;
  gap: 2rem;
  font-size: 1.3rem;
}

.header-box a {
  text-decoration: none;
  color: black;
}

.header-box a:hover {
  color: #404040;
}

.right-header img {
  height: 1.3rem;
  margin-left: 1.5rem;
}

/* BACK ARROW */
.back-arrow {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background: #f2f2f2;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

.back-arrow a {
  text-decoration: none;
  color: black;
}

/* MAIN CONTAINER */
.gallery-container {
  width: 80%;
  margin: 0 auto;
  padding-top: 80px;
}

/* SECTION TITLES */
.section-title {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  margin: 2.5rem 0 1rem;
}

/* HORIZONTAL SCROLL STRIP */
.gallery-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.gallery-grid::-webkit-scrollbar {
  height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: #f2f2f2;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: #000;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: #616161;
}

/* GALLERY ITEM */
.gallery-item {
  flex: 0 0 auto;
  width: 300px;
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  overflow: hidden;
}

.gallery-item video {
  width: 100%;
  display: block;
}

/* HOVER OVERLAY */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: black;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 0.8;
}

.gallery-item video {
  transition: transform 0.3s ease;
}

.gallery-item:hover video {
  transform: scale(1.05);
}

/* FULLSCREEN */
.fullscreen-gallery {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
}

.fullscreen-gallery .image-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fullscreen-item {
  max-width: 80%;
  max-height: 80%;
  display: none;
}

.fullscreen-item.show {
  display: block;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  font-size: 24px;
  color: white;
  cursor: pointer;
  padding: 16px;
}

.prev { left: 10px; }
.next { right: 10px; }

/* FOOTER */
.main-footer {
  text-align: center;
  padding: 2rem 0;
}

.main-footer-text {
  font-size: 15px;
  font-weight: 300;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .gallery-item {
    width: 260px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
