/* Inician Styles of cover page */
.cover-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  opacity: .2;
  transform: translateY(-20px);
  animation: fadeIn 1s ease-in-out forwards;
}

.cover-container img {
  display: block;
  width: 100%;
  height: 45vh;
  min-height: 260px;
  object-fit: cover;
}

/* El titulo y subtitulo se apoyan en la base del cover */
.cover-container .title-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(4px, .7vw, 12px);
  width: 100%;
  padding: clamp(20px, 3.5vw, 64px);
  box-sizing: border-box;
  text-align: left;
  color: #fff;
  background: linear-gradient(to top, rgba(20,20,19,.78), rgba(20,20,19,.22) 55%, transparent);
}

.title-container h1 {
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: .025em;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.title-container p {
  font-size: clamp(1rem, 1.65vw, 1.6rem);
  line-height: 1.4;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.fondo-color { background-color: rgba(0, 0, 0, .35); }

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .cover-container img { height: 38vh; min-height: 240px; }
  .cover-container .title-container { padding: clamp(16px, 5vw, 28px); gap: 6px; }
  .title-container h1 { font-size: clamp(1.65rem, 7vw, 2.65rem); line-height: 1.12; }
  .title-container p { font-size: clamp(.95rem, 3.6vw, 1.2rem); line-height: 1.35; }
}
/* Terminan Styles cover page */


/* Inician Styles */

.autoplay-btn {
  top: 1em;
}

#modalTitle {
    text-align: center;
    position: absolute;
    z-index: 1;
    bottom: 2em;
    left: 0;
    width: fit-content;
    color: lightgoldenrodyellow;
    background-color: rgba(0, 0, 0, 0.459);
    margin: 0;
    font-size: medium;
    border-radius: 10px;
    padding: 10px;
    right: 0;
    margin: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1em;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 30px;
  padding: 1em;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  padding:0;
}

.the_title {
  position: sticky;
  width: 100%;
  background-color: #fff;
  padding-top: 10px;
  padding: 10px;
}

.gallery-item h2 {
  font-size: medium;
  text-align: center;
  text-decoration: none;
}

.gallery .gallery-item img {
  width: 100%;
  height: 350px;
  max-height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
  
.gallery .gallery-item:hover img {
  /*filter: grayscale(50%);*/
  filter: brightness(115%);  
  transform: scale(1.1);
  overflow: hidden;
  cursor: pointer;
}


.mycarousel-container {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.85);
  }

.thumbnails {
max-width:90vw;
display: flex;
position: absolute;
bottom: 1em;
background: #f5f5f5b3;
overflow-x: auto;
justify-content:left;
margin-top: 10px;
border-radius: 5px;
scrollbar-width: thin;
padding: 10px;
margin: auto;
left: 0;
right: 0;
width: fit-content;
gap: 5px;
} 

.thumbnail {
width: 100px;
border-radius: 5%;
transition: border-color 0.3s;
background: whitesmoke;
top: 100px;
border-radius: 2px;
border: 2px solid;
border-color: whitesmoke !important;
box-shadow: 5px 4px 2px 1px rgb(0 0 0 / 25%);

flex: 0 0 auto;
margin: 5px;
cursor: pointer;
padding: 5px;
height: auto;
overflow: hidden;
}

.thumbnail img {
display: flex;
object-fit: contain;
width: 100%;
height: 50px;
border-radius: 5px;
transition: transform 0.3s;
justify-self: center;
}

.thumbnail img:hover {
  transform: scale(1.2);
}


.thumbnail.active {
border-color: white;
transform: scale(1.2); /* Adjust the scale factor for the active thumbnail */
background: white;
}

.thumbnail:not(.active) {
transform: scale(1); /* Adjust the scale factor for the hovered inactive thumbnail */
}

.prev, .next {
position: absolute;
top: 50%;
width: auto;
margin-top: -30px;
padding: 16px;
color: white;
font-size: 20px;
cursor: pointer;
background-color: #333333ba;
border: none;
border-radius: 4px;
transition: background-color 0.3s;
}

.prev:hover, .next:hover {
background-color: #55555575;
}

.prev {
left: 0;
}

.next {
right: 0;
}


@media (max-width: 1024px) {
  .mycarousel-item img {
    object-fit: contain !important;
  }
  }


@media screen and (min-width: 767px) {
.thumbnails {
  display: flex;
  position: absolute;
  justify-content: normal;
  align-items: center;
  top: 6em;
  width: fit-content;
  flex-flow: column;
  left: 3em;
  border-radius: 5px;
  padding: 20px;
  background: #f5f5f5b3;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  row-gap: 1em;
  margin: 0;
  height: 80vh;
  max-height: fit-content;
}

.thumbnail img {
    width: auto;
    height: 130px;
    object-fit: contain;
    padding: 0;
    margin: 0;
    border: 0;
}

.thumbnail {
    width: auto;
    height: auto;
    cursor: pointer;
    transition: border-color 0.3s;
    flex: 0 0 auto;
    border-radius: 2px;
    padding: 5px;
    margin: 10px;
    background: white;
}

}


  /* Inician Styles Modal touch slider zoom */

  .mymodal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    background: rgba(0, 0, 0, 0.80);
    z-index: 1;

    min-width: 100%;
    overflow: hidden;
    width: 100%;
    height: 100vh;

    /*
    justify-content: center;
    align-items: center;
    */
  }

  .mymodal-close, .close-btn {
    position: absolute;
    z-index: 1;
    top: 1em;
    left: 1em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px !important;
    cursor: pointer;
    background-color: rgba(102, 102, 102, 0.845);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 5px;
    width: 40px;
    height: 40px;
    text-align: center;
    align-content: center;
  }

  .mymodal-close:hover, .close-btn:hover, #playPauseBtn:hover {
    filter: brightness(150%);
  }

  .mymodal-arrow {
    font-family: Arial, Helvetica, sans-serif;
    user-select: none;
    position: absolute;
    z-index: 1;
    top: 50%;
    width: auto;
    margin-top: -30px;
    padding: 16px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    background-color: #333333ba;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
  }

  .mymodal-prev {
    left: 10px;
  }

  .mymodal-next {
    right: 10px;
  }

.mymodal-content {
    width: 100%;
    height: 100%;
}
  
.zoom-container {
  overflow: hidden;
}

.zoom-container img {
  width: 100%;
  height: 100vh;
  object-fit: contain;
    cursor: zoom-in;
    padding: 10px;
    min-width: 100%;
}

a {
  text-decoration: none;
}


@media (max-width: 768px) {
#modalTitle {
left: 0;
right: 0;
margin: auto;
font-size: large;
bottom: 7em;
}

.mymodal-arrow {
display: none;
}

.mymodal-content {
max-width: 100vw;
}

.mymodal {
padding: 0;
}

}

@media (max-width: 430px) {
.gallery {
  grid-template-columns: auto auto;
}

}


#playPauseBtn {
  position: absolute;
  z-index: 1;
  top: 1em;
  right: 20px;
  width: 50px;
  height: 50px;
  color: white;
  background-color: brown;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  user-select: none;
}

/* Terminan Styles modal sliderzoom */

/* Styles para script de zoom */
#container-zoom {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
}

#zoomImage {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
 
/* Terminan Styles */

/* OWD luxury typography and filter controls — JS selectors unchanged */
:root {
  --owd-carbon: #292724;
  --owd-copper: #a4765b;
  --owd-champagne: #f2eee7;
  --owd-champagne-light: #faf8f4;
  --owd-gold: #b79a70;
}
.hero h1 {
  font-family: 'Bodoni Moda', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-variant: normal;
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 5.8rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  text-transform: none;
  color: var(--owd-champagne-light);
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero h1 .owd-title-accent { color: #d3a98e; font-style: italic; font-weight: 400; }
.hero h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; letter-spacing: .035em; }
.myprojects .btn-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(.5rem, 1.5vw, 1rem); padding: 1.5rem 1rem; margin: 0 auto 1rem; max-width: 1200px; box-sizing: border-box; }
.myprojects .btn-container .filter-btn {
  appearance: none; width: auto; min-width: clamp(130px, 15vw, 195px); margin: 0;
  padding: .85rem 1.55rem; border: 1px solid rgba(164,118,91,.5); border-radius: 3px;
  background: var(--owd-champagne-light); color: var(--owd-carbon);
  font-family: 'Montserrat', 'Segoe UI', sans-serif; font-size: .78rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 3px 12px rgba(41,39,36,.05);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.myprojects .btn-container .filter-btn:hover { background: var(--owd-copper); color: #fff; border-color: var(--owd-copper); transform: translateY(-2px); box-shadow: 0 7px 18px rgba(41,39,36,.12); }
.myprojects .btn-container .filter-btn.active,
.myprojects .btn-container .filter-btn.active:hover { background: var(--owd-carbon); color: var(--owd-champagne-light); border-color: var(--owd-gold); box-shadow: inset 0 -2px 0 var(--owd-copper), 0 5px 14px rgba(41,39,36,.14); }
.myprojects .btn-container .filter-btn:focus-visible { outline: 2px solid var(--owd-copper); outline-offset: 3px; }
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); padding-inline: .5rem; }
  .myprojects .btn-container { gap: .5rem; padding-inline: .75rem; }
  .myprojects .btn-container .filter-btn { min-width: 0; flex: 1 1 28%; padding: .8rem .45rem; font-size: .67rem; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) { .myprojects .btn-container .filter-btn { transition: none; } }


html, body {
  background: var(--owd-champagne);
  color: var(--owd-carbon);
}

/* Title: same editorial treatment as OWD reference */
body .hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.7rem, 6.2vw, 6.5rem);
  font-weight: 400;
  font-variant: normal;
  letter-spacing: -.045em;
  line-height: 1.05;
  text-transform: none;
}

body .hero h1 .owd-title-accent {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-style: italic;
}
@media (max-width: 600px) {
  body .hero h1 { font-size: clamp(2.5rem, 9vw, 3.7rem); }
}


/* OWD | Flecha animada del hero: estilos externos */
@keyframes owd-scroll-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}
.hero .scroll-down {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  cursor: pointer;
  animation: owd-scroll-bounce 2s infinite;
}
.hero .scroll-down .icon { width: 44px; height: 44px; }
.hero .scroll-down .icon path {
  fill: none;
  stroke: var(--owd-champagne-light, #faf8f4);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 5px rgba(0,0,0,.35));
  transition: stroke .3s ease;
}
.hero .scroll-down:hover .icon path,
.hero .scroll-down:focus-visible .icon path { stroke: var(--owd-copper, #a4765b); }
#ourprojects { scroll-margin-top: 6em; }
@media (prefers-reduced-motion: reduce) {
  .hero .scroll-down { animation: none; }
  html { scroll-behavior: auto; }
}
