/* BahiaCook Galería Mosaico */
.bcgm-gallery-page{
  background:#f5f0e8;
}

.bcgm-hero{
 /*  padding:120px 0 64px;*/
  padding:40px 20px 40px;
  background:#07122e;
  color:#fff;
  text-align:center;
}

.bcgm-hero .container,
.bcgm-gallery-section .container{
  max-width:1240px;
  margin:0 auto;
  padding-left:24px;
  padding-right:24px;
}

.bcgm-kicker{
  margin:0 0 12px;
  color:#d7b15b;
  font-size:13px;
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.bcgm-hero h1{
  margin:0 0 16px;
  color:#fff;
  font-family:Georgia, 'Times New Roman', serif;
  font-size:clamp(42px, 5vw, 72px);
  line-height:1.02;
}

.bcgm-hero p:not(.bcgm-kicker){
  max-width:760px;
  margin:0 auto;
  color:rgba(255,255,255,.82);
  font-size:18px;
  line-height:1.6;
}

.bcgm-gallery-section{
  padding:72px 0 26px;
}

.bcgm-gallery-section + .bcgm-gallery-section{
  padding-top:44px;
}

.bcgm-section-head{
  max-width:820px;
  margin:0 auto 28px;
  text-align:center;
}

.bcgm-section-head h2{
  margin:0 0 12px;
  color:#07122e;
  font-family:Georgia, 'Times New Roman', serif;
  font-size:clamp(34px, 4.2vw, 58px);
  line-height:1.05;
}

.bcgm-section-head p:not(.bcgm-kicker){
  margin:0;
  color:#4d5873;
  font-size:17px;
  line-height:1.55;
}

.bcgm-mosaic-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  grid-auto-rows:190px;
  grid-auto-flow:dense;
  gap:12px;
}

.bcgm-mosaic-item{
  position:relative;
  display:block;
  overflow:hidden;
  min-height:0;
  border-radius:10px;
  background:#e8e1d6;
  box-shadow:0 10px 28px rgba(7,18,46,.08);
  text-decoration:none;
}

.bcgm-mosaic-item.is-large{
  grid-column:span 2;
  grid-row:span 2;
}

.bcgm-mosaic-item.is-wide{
  grid-column:span 2;
}

.bcgm-mosaic-item.is-tall{
  grid-row:span 2;
}

.bcgm-mosaic-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .28s ease, filter .28s ease;
}

.bcgm-mosaic-item:hover img{
  transform:scale(1.04);
  filter:brightness(.94);
}

.bcgm-photo-label{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:2;
  display:inline-flex;
  width:max-content;
  max-width:calc(100% - 24px);
  padding:7px 10px;
  border-radius:8px;
  background:rgba(255,255,255,.92);
  color:#07122e;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  box-shadow:0 4px 14px rgba(0,0,0,.14);
}

.bcgm-viewer-open{
  overflow:hidden;
}

.bcgm-viewer{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.94);
  padding:34px 76px;
}

.bcgm-viewer.is-open{
  display:flex;
}

.bcgm-viewer-content{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  max-width:calc(100vw - 170px);
  max-height:calc(100vh - 60px);
}

.bcgm-viewer-content img{
  display:block;
  max-width:100%;
  max-height:calc(100vh - 120px);
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 18px 70px rgba(0,0,0,.5);
}

.bcgm-viewer-caption{
  margin-top:14px;
  color:#fff;
  font-family:Georgia, 'Times New Roman', serif;
  font-size:19px;
  text-align:center;
}

.bcgm-viewer-counter{
  margin-top:5px;
  color:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
}

.bcgm-viewer-close{
  position:absolute;
  top:18px;
  right:22px;
  z-index:2;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:35px;
  line-height:1;
  cursor:pointer;
}

.bcgm-viewer-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  width:58px;
  height:70px;
  border:0;
  border-radius:8px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:38px;
  cursor:pointer;
}

.bcgm-viewer-arrow:hover,
.bcgm-viewer-close:hover{
  background:#d7b15b;
  color:#07122e;
}

.bcgm-viewer-prev{ left:18px; }
.bcgm-viewer-next{ right:18px; }

@media (max-width:1000px){
  .bcgm-mosaic-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    grid-auto-rows:170px;
  }
}

@media (max-width:760px){
  .bcgm-hero{
    padding:92px 0 48px;
  }

  .bcgm-gallery-section{
    padding:54px 0 20px;
  }

  .bcgm-mosaic-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    grid-auto-rows:170px;
  }

  .bcgm-mosaic-item.is-large,
  .bcgm-mosaic-item.is-wide,
  .bcgm-mosaic-item.is-tall{
    grid-column:span 1;
    grid-row:span 1;
  }

  .bcgm-viewer{
    padding:70px 12px 78px;
  }

  .bcgm-viewer-content{
    max-width:100%;
  }

  .bcgm-viewer-content img{
    max-height:calc(100vh - 180px);
  }

  .bcgm-viewer-arrow{
    top:auto;
    bottom:16px;
    transform:none;
    width:54px;
    height:50px;
    font-size:30px;
  }

  .bcgm-viewer-prev{
    left:calc(50% - 66px);
  }

  .bcgm-viewer-next{
    right:calc(50% - 66px);
  }

  .bcgm-viewer-close{
    top:14px;
    right:14px;
  }
}

@media (max-width:520px){
  .bcgm-mosaic-grid{
    grid-template-columns:1fr;
    grid-auto-rows:220px;
  }

  .bcgm-photo-label{
    font-size:12px;
  }
}
