/**
 * Gallery Template Part: Stylesheet
 *
 * Scopes styles for the Nature/Gallery layout on the Home page (.nt-*)
 * and the Gallery layout on the Stay page (.gal-*).
 *
 * @package Matu_Luxe
 */

/* ════════ NATURE / HOME PAGE GALLERY PREFIXED (.nt-*) ════════ */
.nt-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 44px;
  margin: 30px 0 38px;
}

.nt-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  color: var(--green);
  padding: 0 2px 8px;
  opacity: .5;
  border-bottom: 2px solid transparent;
  transition: .25s;
}

.nt-tab:hover {
  opacity: .8;
}

.nt-tab.active {
  opacity: 1;
  border-bottom-color: var(--green);
}

.nt-panel {
  display: none !important;
}

.nt-panel.active {
  display: flex !important;
}

.nt-grid {
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  margin: 0 auto;
  padding: 14px 10px;
  width: 100%;
  overflow-x: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.nt-grid::-webkit-scrollbar {
  height: 0;
}

.nt-grid.dragging {
  cursor: grabbing;
}

.nt-grid.dragging img {
  pointer-events: none;
}

.nt-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nt-col img {
  width: 150px;
  height: 200px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  display: block;
}

.nt-col:nth-child(1) { margin-top: 0; }
.nt-col:nth-child(2) { margin-top: 44px; }
.nt-col:nth-child(3) { margin-top: 130px; }
.nt-col:nth-child(4) { margin-top: 70px; }
.nt-col:nth-child(5) { margin-top: 150px; }
.nt-col:nth-child(6) { margin-top: 70px; }
.nt-col:nth-child(7) { margin-top: 130px; }
.nt-col:nth-child(8) { margin-top: 44px; }
.nt-col:nth-child(9) { margin-top: 0; }


/* ════════ STAY PAGE GALLERY PREFIXED (.gal-*) ════════ */
.gal-title {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 52px;
  color: var(--green);
  margin-bottom: 28px;
}

.gal-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 44px;
  margin: 10px 0 38px;
}

.gal-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  color: var(--green);
  padding: 0 2px 8px;
  opacity: .5;
  border-bottom: 2px solid transparent;
  transition: .25s;
}

.gal-tab:hover {
  opacity: .8;
}

.gal-tab.active {
  opacity: 1;
  border-bottom-color: var(--green);
}

.gal-panel {
  display: none !important;
}

.gal-panel.active {
  display: flex !important;
}

.gal-grid {
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  margin: 0 auto;
  padding: 14px 10px;
  width: 100%;
  overflow-x: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.gal-grid::-webkit-scrollbar {
  height: 0;
}

.gal-grid.dragging {
  cursor: grabbing;
}

.gal-grid.dragging img {
  pointer-events: none;
}

.gal-col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gal-col a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}

.gal-col img {
  width: 150px;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}

.gal-col a:hover img {
  transform: scale(1.08);
}

/* Staggered wave layout column offsets */
.nt-col:nth-child(1), .gal-col:nth-child(1) { margin-top: 0; }
.nt-col:nth-child(2), .gal-col:nth-child(2) { margin-top: 44px; }
.nt-col:nth-child(3), .gal-col:nth-child(3) { margin-top: 130px; }
.nt-col:nth-child(4), .gal-col:nth-child(4) { margin-top: 70px; }
.nt-col:nth-child(5), .gal-col:nth-child(5) { margin-top: 150px; }
.nt-col:nth-child(6), .gal-col:nth-child(6) { margin-top: 70px; }
.nt-col:nth-child(7), .gal-col:nth-child(7) { margin-top: 130px; }
.nt-col:nth-child(8), .gal-col:nth-child(8) { margin-top: 44px; }
.nt-col:nth-child(9), .gal-col:nth-child(9) { margin-top: 0; }

/* Uniform image sizing for home page nature gallery */
.nt-col img {
  width: 150px;
  height: 240px;
}

/* Gallery Item link wrapping and play button overlay */
.gallery-item-link {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}

.gallery-item-link img {
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
  display: block;
  object-fit: cover;
}

.gallery-item-link:hover img {
  transform: scale(1.08);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-item-link:hover .video-play-overlay {
  opacity: 1;
}

.video-play-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.3s ease;
}

.gallery-item-link:hover .video-play-icon {
  transform: scale(1.1);
}

.video-play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--green);
  margin-left: 3px; /* Offset to visually center the play icon triangle */
}
