/*
Theme Name: Eternitex
Author: WebVibe
Description: Custom minimal theme for Eternitex
Version: 1.0
Text Domain: eternitex
*/
.etx-breadcrumbs {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #9a9a9a;
}

.etx-breadcrumbs a {
  color: #9a9a9a;
  text-decoration: none;
}

.etx-breadcrumbs a:hover {
  color: #E3000F;
}

.etx-breadcrumbs span {
  margin: 0 6px;
}

.etx-breadcrumbs .current {
  color: #E3000F;
  font-weight: 500;
}

/* === GALLERY WRAPPER === */
.et-gallery {
  padding: 60px 0;
}

/* === TABS === */
.et-gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.et-tab {
  padding: 10px 22px;
  border: 1px solid #E3000F;
  background: transparent;
  color: #E3000F;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: .25s;
}

.et-tab.active,
.et-tab:hover {
  background: #E3000F;
  color: #fff;
}

/* === CONTENT === */
.et-tab-content {
  display: none;
  columns: 3;
  column-gap: 20px;
}

.et-tab-content.active {
  display: block;
}

/* === IMAGES === */
.et-tab-content img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  break-inside: avoid;

  display: block;        /* КРИТИЧНО */
  border-radius: 16px;   /* СКРУГЛЕНИЕ */
  overflow: hidden;      /* КРИТИЧНО */
}


/* === EMPTY === */
.et-gallery-empty {
  text-align: center;
  color: #777;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .et-tab-content {
    columns: 1;
  }
}

/* =========================
   ETERNITEX GALLERY LIGHTBOX
========================= */

#et-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

#et-lightbox.active {
    display: flex;
}

#et-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
}

.et-lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}
/* Gallery images */
.et-gallery-img {
    border-radius: 16px;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Небольшой hover — выглядит дорого */
.et-gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
/* === IMAGE WRAPPER (FIX FOR CSS COLUMNS) === */
.et-img-wrap {
    margin-bottom: 20px;
    break-inside: avoid;

    border-radius: 16px;
    overflow: hidden; /* ВОТ ТУТ ВСЯ МАГИЯ */
}

/* img внутри — просто растягивается */
.et-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
}
.et-img-wrap {
    margin-bottom: 20px;
    break-inside: avoid;

    border-radius: 16px;
    overflow: hidden;
}

.et-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
.et-img-wrap {
    margin-bottom: 20px;
    break-inside: avoid;

    aspect-ratio: 4 / 3;     /* можешь поменять */
    border-radius: 16px;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    cursor: zoom-in;
}
