/* ================================
   GALERI PAGE
   ================================ */
.galeri-page {
  padding: 3rem 0;
  max-width: 1000px;
  min-height: calc(100vh - 400px);
  margin: 0 auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    -webkit-transform: translateY(30px);
    -moz-transform: translateY(30px);
    -ms-transform: translateY(30px);
    -o-transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
  }
}

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  animation: fadeInUp 0.3s ease-out both;
  -webkit-animation: fadeInUp 0.3s ease-out both;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 1.5rem;
  flex: 1;
  padding: 2rem;
}

.gallery-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0;
  opacity: 0;
  animation: fadeInUp 0.3s ease-out forwards;
  -webkit-animation: fadeInUp 0.3s ease-out forwards;
}

.gallery-item:nth-child(odd) {
  margin-left: 2rem;
}

.gallery-item:nth-child(even) {
  margin-right: 2rem;
}

.gallery-item:hover {
  transform: translateY(-14px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

/* Item 1 - Large 578px x 216px */
.gallery-item:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.gallery-item:nth-child(1) .gallery-image {
  width: 100%;
  height: 260px;
}

/* Item 2 - 578px x 216px */
.gallery-item:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.gallery-item:nth-child(2) .gallery-image {
  width: 100%;
  height: 260px;
}

/* Item 3 - 578px x 216px */
.gallery-item:nth-child(3) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.gallery-item:nth-child(3) .gallery-image {
  width: 100%;
  height: 260px;
}

/* Item 4 - 578px x 216px */
.gallery-item:nth-child(4) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.gallery-item:nth-child(4) .gallery-image {
  width: 100%;
  height: 260px;
}

/* Item 5 - 578px x 216px */
.gallery-item:nth-child(5) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.gallery-item:nth-child(5) .gallery-image {
  width: 100%;
  height: 260px;
}

/* Item 6 - 578px x 216px */
.gallery-item:nth-child(6) {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

.gallery-item:nth-child(6) .gallery-image {
  width: 100%;
  height: 260px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0rem;
  margin-bottom: 0.5rem;
  border-radius: 16px 16px 0 0;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  align-items: center;
  object-fit: cover;
  display: block;
}

.gallery-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  padding: 0.5rem 1.25rem 1rem 1.25rem;
  background: white;
}

.gallery-caption h4 {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
}

.gallery-caption p {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Navigation Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}

.gallery-nav:hover {
  transform: translateY(-50%) scale(1.1);
  -webkit-transform: translateY(-50%) scale(1.1);
  -moz-transform: translateY(-50%) scale(1.1);
  -ms-transform: translateY(-50%) scale(1.1);
  -o-transform: translateY(-50%) scale(1.1);
}

.gallery-nav img {
  width: 54px;
}

.gallery-nav-prev {
  left: -40px;
}

.gallery-nav-next {
  right: -40px;
}

@media (max-width: 768px) {
  .gallery-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .gallery-item.item-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item.item-large .gallery-image {
    height: 250px;
  }

  .gallery-nav {
    position: relative;
    transform: translateY(0);
    width: 100%;
  }

  .gallery-nav-prev,
  .gallery-nav-next {
    position: relative;
    left: auto;
    right: auto;
  }
}
