/* Precise encapsulated CSS styling for Piscinas Ganduglia Custom Widget */

.pg-projects-0dfe9664 {
  font-family: "Nunito", sans-serif;
  box-sizing: border-box;
}

.pg-container-0dfe9664 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.pg-kicker-0dfe9664 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pg-kicker-0dfe9664 i {
  width: 28px;
  height: 1px;
}

/* SECTION HEAD */
.pg-section-head-0dfe9664 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}
.pg-section-title-wrap {
  flex: 1;
}
.pg-section-head-0dfe9664 h2 {
  margin: 17px 0 0;
  font-family: "Marcellus", serif;
  font-size: 49px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.026em;
}
.pg-section-head-0dfe9664 p {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 600;
}

/* FILTERS */
.pg-filter-0dfe9664 {
  position: relative;
  width: 270px;
  flex: 0 0 auto;
}
.pg-filter-toggle-0dfe9664 {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 17px;
  border: 1px solid;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: all .2s ease;
  appearance: none;
}
.pg-filter-toggle-0dfe9664 svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}
.pg-filter-0dfe9664.is-open .pg-filter-toggle-0dfe9664 svg {
  transform: rotate(180deg);
}
.pg-filter-menu-0dfe9664 {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  padding: 7px;
  border: 1px solid rgba(30,30,28,.12);
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(30,30,28,.13);
}
.pg-filter-0dfe9664.is-open .pg-filter-menu-0dfe9664 {
  display: block;
}
.pg-filter-menu-0dfe9664 button {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  transition: all .2s ease;
}

/* LIST OF PROJECTS */
.pg-project-list-0dfe9664 {
  display: grid;
}
.pg-project-card-0dfe9664 {
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-style: solid;
}
.pg-project-card-0dfe9664[hidden] {
  display: none !important;
}
.pg-project-card-head-0dfe9664 {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
  gap: 28px;
  margin-bottom: 20px;
}
.pg-project-card-category-0dfe9664 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.pg-project-card-category-0dfe9664::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.pg-project-card-0dfe9664 h3 {
  margin: 0;
  font-family: "Marcellus", serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.018em;
}
.pg-project-card-desc-0dfe9664 {
  max-width: 760px;
  margin: 11px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.66;
}
.pg-project-card-count-0dfe9664 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 999px;
  background: #E7F2F1;
  color: #2F7F86;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}
.pg-project-card-count-0dfe9664 svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* MOSAIC SYSTEM */
.pg-project-mosaic-0dfe9664 {
  display: grid;
  grid-template-columns: minmax(0,2.08fr) minmax(220px,1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  overflow: hidden;
  background: #E7F2F1;
}
.pg-project-media-0dfe9664 {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #111110;
  cursor: pointer;
  line-height: 0;
  appearance: none;
}
.pg-project-media-0dfe9664:first-child {
  grid-row: 1/3;
}
.pg-project-media-0dfe9664 img,
.pg-project-media-0dfe9664 video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.pg-project-media-0dfe9664::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(17,17,16,.38));
  transition: opacity .25s ease;
}
.pg-project-media-0dfe9664:hover img,
.pg-project-media-0dfe9664:hover video {
  transform: scale(1.035);
}
.pg-project-media-0dfe9664__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(17,17,16,.55);
  color: #ffffff;
  transform: translate(-50%,-50%);
  backdrop-filter: blur(8px);
}
.pg-project-media-0dfe9664__play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: currentColor;
}
.pg-project-media-0dfe9664:not(:first-child) .pg-project-media-0dfe9664__play {
  width: 42px;
  height: 42px;
}
.pg-project-media-0dfe9664:not(:first-child) .pg-project-media-0dfe9664__play svg {
  width: 16px;
  height: 16px;
}
.pg-project-media-0dfe9664__more {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17,17,16,.58);
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.02em;
  backdrop-filter: blur(2px);
}
.pg-project-media-0dfe9664__label {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(17,17,16,.48);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.pg-project-media-0dfe9664__label svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* FOOTER */
.pg-project-card-footer-0dfe9664 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 19px;
}
.pg-project-tags-0dfe9664 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pg-project-tag-0dfe9664 {
  padding: 8px 10px;
  border: 1px solid rgba(30,30,28,.12);
  border-radius: 999px;
  color: #706B63;
  font-size: 10px;
  font-weight: 800;
}
.pg-project-open-0dfe9664 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  transition: all .2s ease;
  white-space: nowrap;
}
.pg-project-open-0dfe9664:hover {
  transform: translateY(-2px);
}
.pg-project-open-0dfe9664 svg {
  width: 14px;
  height: 14px;
}

/* LOAD MORE */
.pg-load-more-wrap-0dfe9664 {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}
.pg-load-more-0dfe9664 {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: all .2s ease;
}
.pg-load-more-0dfe9664:hover {
  transform: translateY(-2px);
}
.pg-load-more-0dfe9664 svg {
  width: 14px;
  height: 14px;
}

/* ==========================================
   VISOR MODAL (ROBUST & ENCAPSULATED)
   ========================================== */
.pg-project-modal-0dfe9664 {
  position: fixed;
  z-index: var(--modal-z-index, 9999);
  inset: 0;
  display: none;
  padding: 28px;
}
body.admin-bar .pg-project-modal-0dfe9664 {
  top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .pg-project-modal-0dfe9664 {
    top: 46px;
  }
}
.pg-project-modal-0dfe9664.is-open {
  display: block;
}
body.pg-lock {
  overflow: hidden !important;
}
.pg-project-modal-0dfe9664__backdrop {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
}
.pg-project-modal-0dfe9664__panel {
  position: relative;
  width: min(1500px, 100%);
  height: min(900px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 32px 100px rgba(0,0,0,.34);
}
.pg-project-modal-0dfe9664__close {
  position: absolute;
  z-index: 15;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30,30,28,.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #1E1E1C;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30,30,28,.14);
  transition: all .2s ease;
}
.pg-project-modal-0dfe9664__close:hover {
  background: #2F7F86;
  color: #ffffff;
}
.pg-project-modal-0dfe9664__close svg {
  width: 16px;
  height: 16px;
}

/* MAIN VIEWER */
.pg-project-modal-0dfe9664__viewer {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111110;
}
.pg-main-media-0dfe9664 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.pg-main-media-0dfe9664 img, 
.pg-main-media-0dfe9664 video {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  background: transparent;
}
.pg-media-nav-0dfe9664 {
  position: absolute;
  z-index: 7;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 50%;
  background: rgba(17,17,16,.46);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
  transition: all .2s ease;
}
.pg-media-nav-0dfe9664:hover {
  background: #2F7F86;
}
.pg-media-nav-0dfe9664 svg {
  width: 16px;
  height: 16px;
}
.pg-media-nav-0dfe9664--prev { left: 18px; }
.pg-media-nav-0dfe9664--next { right: 18px; }

.pg-media-counter-0dfe9664 {
  position: absolute;
  z-index: 7;
  bottom: 18px;
  left: 50%;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(17,17,16,.58);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

/* SIDEBAR INFO */
.pg-project-modal-0dfe9664__info {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pg-project-modal-0dfe9664__info-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 58px 28px 24px;
}
.pg-modal-type-0dfe9664 {
  display: block;
  color: #2F7F86;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pg-project-modal-0dfe9664__info h2 {
  margin: 10px 0 0;
  font-family: "Marcellus", serif;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.pg-modal-description-0dfe9664 {
  margin: 15px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}
.pg-project-data-0dfe9664 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 0;
  padding: 20px 0;
  border-top: 1px solid rgba(30,30,28,.12);
  border-bottom: 1px solid rgba(30,30,28,.12);
}
.pg-project-data-0dfe9664 div {
  min-width: 0;
}
.pg-project-data-0dfe9664 dt {
  color: #706B63;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pg-project-data-0dfe9664 dd {
  margin: 4px 0 0;
  color: #1E1E1C;
  font-size: 12px;
  font-weight: 900;
}
.pg-modal-tags-0dfe9664 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.pg-thumbnails-0dfe9664 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 23px;
}
.pg-thumb-0dfe9664 {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #E7F2F1;
  cursor: pointer;
  line-height: 0;
  appearance: none;
}
.pg-thumb-0dfe9664.is-active {
  border-color: #2F7F86 !important;
}
.pg-thumb-0dfe9664 img,
.pg-thumb-0dfe9664 video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pg-thumb-0dfe9664__video {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17,17,16,.28);
  color: #ffffff;
}
.pg-thumb-0dfe9664__video svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.pg-modal-cta-0dfe9664 {
  flex: 0 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 18px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  transition: all .2s ease;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (TABLET)
   ========================================== */
@media(max-width: 1024px) {
  .pg-projects-0dfe9664 {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .pg-section-head-0dfe9664 {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }
  .pg-filter-0dfe9664 {
    width: min(340px, 100%);
  }
  .pg-project-mosaic-0dfe9664 {
    height: 440px;
    grid-template-columns: minmax(0,1.75fr) minmax(190px,1fr);
  }
  .pg-project-modal-0dfe9664 {
    padding: 18px;
  }
  .pg-project-modal-0dfe9664__panel {
    height: calc(100vh - 36px);
    grid-template-columns: minmax(0,1fr) 340px;
  }
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (MOBILE)
   ========================================== */
@media(max-width: 767px) {
  .pg-projects-0dfe9664 {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .pg-container-0dfe9664 {
    width: 100% !important;
  }
  .pg-section-head-0dfe9664 {
    margin-bottom: 27px;
  }
  .pg-section-head-0dfe9664 h2 {
    font-size: 35px;
    line-height: 1.12;
  }
  .pg-section-head-0dfe9664 p {
    font-size: 14px;
    line-height: 1.55;
  }
  .pg-filter-0dfe9664 {
    width: 100%;
  }
  .pg-project-list-0dfe9664 {
    gap: 20px;
  }
  .pg-project-card-0dfe9664 {
    padding: 15px;
    border-radius: 23px;
  }
  .pg-project-card-head-0dfe9664 {
    grid-template-columns: 1fr;
    gap: 13px;
    margin: 2px 2px 15px;
  }
  .pg-project-card-0dfe9664 h3 {
    font-size: 25px;
  }
  .pg-project-card-desc-0dfe9664 {
    font-size: 13px;
    line-height: 1.55;
  }
  .pg-project-card-count-0dfe9664 {
    width: max-content;
    padding: 8px 10px;
  }
  .pg-project-mosaic-0dfe9664 {
    height: 370px;
    grid-template-columns: 1.55fr 1fr;
    gap: 5px;
    border-radius: 17px;
  }
  .pg-project-media-0dfe9664__play {
    width: 43px;
    height: 43px;
  }
  .pg-project-media-0dfe9664__more {
    font-size: 22px;
  }
  .pg-project-media-0dfe9664__label {
    display: none !important;
  }
  .pg-project-card-footer-0dfe9664 {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin: 15px 2px 2px;
  }
  .pg-project-open-0dfe9664 {
    width: 100%;
    min-height: 47px;
  }

  /* Modal Mobile Fluid Layout */
  .pg-project-modal-0dfe9664 {
    padding: 0;
  }
  .pg-project-modal-0dfe9664__panel {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: 48vh minmax(0,1fr);
    border-radius: 0;
  }
  .pg-project-modal-0dfe9664__close {
    top: 10px;
    right: 10px;
  }
  .pg-project-modal-0dfe9664__info-scroll {
    padding: 25px 20px 18px;
  }
  .pg-project-modal-0dfe9664__info h2 {
    padding-right: 30px;
    font-size: 30px;
  }
  .pg-project-data-0dfe9664 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pg-thumbnails-0dfe9664 {
    grid-template-columns: repeat(5, 1fr);
  }
  .pg-modal-cta-0dfe9664 {
    min-height: 49px;
    margin: 10px 15px 15px;
  }
  .pg-media-nav-0dfe9664 {
    width: 39px;
    height: 39px;
  }
  .pg-media-nav-0dfe9664--prev { left: 10px; }
  .pg-media-nav-0dfe9664--next { right: 10px; }
}

@media(max-width: 470px) {
  .pg-project-mosaic-0dfe9664 {
    height: 320px;
  }
  .pg-project-card-desc-0dfe9664 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pg-project-tags-0dfe9664 .pg-project-tag-0dfe9664:nth-child(n+4) {
    display: none;
  }
}
