/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(14, 98%, 50%);
  --black-color: hsl(0, 0%, 0%);
  --black-color-light: hsl(0, 0%, 40%);
  --white-color: hsl(0, 0%, 95%);
  --title-color: hsl(0, 0%, 0%);
  --text-color: hsl(0, 0%, 35%);
  --text-color-light: hsl(0, 0%, 64%);
  --body-color: hsl(0, 0%, 87%);
  --container-color: hsl(0, 0%, 83%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Bai Jamjuree", sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;

    /* Modal vars */
  --overlay-bg: rgba(0,0,0,.6);
  --modal-bg: #111;
  --radius: 14px;
  --gap: 12px;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 3rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/


/*========== Variables Dark theme ==========*/


/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/


/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 2rem 2rem;
}

.section__title-1, 
.section__title-2 {
  position: relative;
  font-size: var(--h1-font-size);
  width: max-content;
  margin: .75rem auto 2rem;
}

.section__title-1 span, 
.section__title-2 span {
  z-index: 5;
  position: relative;
}

.section__title-1::after, 
.section__title-2::after {
  content: "";
  width: 40px;
  height: 28px;
  background-color: hsla(14, 98%, 50%, .2);
  position: absolute;
  top: -4px;
  right: -8px;
}

.section__title-2::after {
  top: initial;
  bottom: -4px;
}

.geometric-box {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--first-color);
  rotate: -30deg;
}

.geometric-box::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--black-color);
  left: -5px;
  top: -5px;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s;
}

.nav{
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo{
  display: flex;
  column-gap: .5rem;
  align-items: center;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.nav__logo-circle,
.nav__toggle{
  width: 32px;
  height: 32px;
  background-color: var(--black-color);
  color: var(--white-color);
  display: grid;
  place-items: center;
}

.nav__logo-circle{
  border-radius: 50%;
}
.nav__toggle{
  font-size: 1.25rem;
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px){
  .nav__menu{
    position: fixed;
    top: -100%; 
    left: 0;
    background-color: hsla(0, 0%, 0%, .75);
    width: 100%;
    padding-block: 1.8rem 5rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: top .4s;
  }
}

.nav__title,
.nav__name,
.nav__close{
  color: var(--white-color);
}

.nav__title{
  display: block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 3.5rem;
}

.nav__name{
  position: relative;
  width: max-content;
  margin: 0 auto 3rem;
  font-size: var(--h2-font-size);
}

.nav__name::after,
.nav__name::before{
  content: '';
  width: 40px;
  height: 1px;
  background-color: var(--text-color-light);
  position: absolute;
  top: 50%;
  left: -4rem;
}

.nav__name::before{
  left: initial;
  right: -4rem;
}

.nav__list{
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link{
  position: relative;
  color: var(--text-color-light);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: color .3s;
}

.nav__link::after{
  content: '';
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  position: absolute;
  left: 0;
  bottom: -.5rem;
  transition: width .3s;
}

.nav__link:hover{
  color: var(--white-color);

}
.nav__link:hover::after{
  width: 25%;
}

.nav__close{
  position: absolute;
  font-size: 2.5rem;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;

}

/* Show menu */
.show-menu{
  top: 0;
}

/* Add shadow header */
.shadow-header{
  box-shadow: 0 1px 16px hsla(0, 0%, 0%, .12);
}

/* Active link */
.active-link{
  color: var(--white-color);
}

.active-link::after{
  width: 25%;
}

/*=============== HOME ===============*/
.home__container{
  padding-top: 2rem;
}

.home__name{
  font-size: var(--biggest-font-size);
  text-align: center;
}

.home__perfil{
  position: relative;
  justify-self: center;
}

.home__image{
  width: 220px;
}

.home__img{
  position: relative;
  z-index: 10;
}

.home__shadow{
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  position: absolute;
  bottom: -.75rem;
  right: -.75rem;
  border: 4px solid var(--black-color);
  z-index: 5;
  transition: background-color .4s;
}

.home__arrow,
.home__line{
  position: absolute;
  filter: invert(1);
  width: 50px;
  transition: filter .4s;
}

.home__arrow{
  left: 40%;
  bottom: -4rem;
}

.home__line{
  right: -2rem;
  bottom: -.5rem;
}

.home__perfil , .geometric-box{
  top: 2.5rem;
  left: -.7rem;
  z-index: 10;
}

.home__social{
  height: max-content;
  position: absolute;
  left: -3rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  display: grid;
  visibility: hidden;
  row-gap: 1rem;
}

.home__social-link{
  background-color: var(--black-color-light);
  color: var(--white-color);
  font-size: 1.25rem;
  /* padding: 6px; */
  display: grid;
  place-items: center;
  transition: background-color .3s;
  width: 30px;
  height: 30px;
  align-items: center;
}

.home__social-link:hover{
background-color: var(--black-color);
}

.home__info{
margin-top: 5rem;
}

.home__description{
  text-align: center;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.home__description b{
  background: linear-gradient(90deg, 
                hsla(14, 98%, 50%, .3),
                hsla(14, 98%, 50%, 0));
}

.home__scroll{
  display: block;
  width: max-content;
  margin: 0 auto;
}

.home__scroll-text{
  display: none;
}

.home__scroll-box{
  background-color: var(--black-color);
  color: var(--white-color);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .4s;
}

.home__scroll-box i{
  animation: scroll-down 3s infinite;
}
/* Animate scroll icon */
@keyframes scroll-down{
  0%{
    transform: translateY(-1rem);
    opacity: 0;
  }
  50%{
    transform: translateY(0);
    opacity: 1;
  }
  100%{
    transform: translateY(.6rem);
    opacity: 0;
  }
}



/*=============== BUTTON ===============*/
.button,
.button__ghost{
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
}

.button{
  background-color: var(--black-color);
  padding: 1.1rem 1.5rem;
  color: var(--white-color);
  font-weight: var(--font-medium);
  transition: background-color .4s;
}

.button i{
  font-size: 1.25rem;
}

.button:hover{
  background-color: var(--first-color);
}

.button__ghost{
  border: 3px solid var(--black-color);
  color: var(--black-color);
  padding: .5rem;
  transition: border .4s, color .4s;
}

.button__ghost i{
  font-size: 1.25rem;
}

.button__ghost:hover{
  border: 3px solid var(--first-color);
  
}

/*=============== ABOUT ===============*/
.about{
  background-color: var(--container-color);
  transition: background-color .4s;
}

.about__container{
  row-gap: 0;
}

.about__perfil{
  position: relative;
  justify-self: center;
  margin-block: 2.5rem 4.5rem;
}

.about__image{
  width: 220px;
}

.about__img{
  position: relative;
  border: 4px solid var(--white-color);
  z-index: 1;
}

.about__shadow,
.about__line,
.about__box{
  position: absolute;
}

.about__shadow{
  width: 150px;
  height: 385px;
  background-color: var(--body-color);
  top: -2.5rem;
  right: -3.5rem;
  border-bottom: 4px solid var(--first-color);
  transition: background-color .4s;
}

.about__perfil .geometric-box{
  top: 1.5rem;
  right: -2.8rem;
}

.about__line{
  filter: invert(1);
  right: -1.25rem;
  top: 6rem;
  width: 50px;
  transition: filter .4s;
}

.about__box{
  width: 40px;
  height: 40px;
  background-color: var(--first-color);
  right: -.5rem;
  bottom: 1.5rem;
}

.about__info{
  padding-left: 1.25rem;
}

.about__description{
  position: relative;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.about__description::after{
  content: '';
  width: 20px;
  height: 1px;
  background-color: var(--title-color);
  position: absolute;
  left: -1.75rem;
  top: .5rem;
}

.about__list{
  list-style: square;
  color: var(--title-color);
  margin-bottom: 3rem;
}

.about__buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
}
/*=============== SERVICES ===============*/


/*=============== PROJECTS ===============*/
.projects{
  background-color: var(--container-color);
  transition: background-color .4s;
}

.projects__container{
  row-gap: 2rem;
}

.projects__card{
  padding: 1rem 1rem 2rem;
  transition: background-color .4s;
}

.projects__image{
  position: relative;
  margin-bottom: .75rem;
}

.projects__button{
  position: absolute;
  right: 1rem;
  bottom: -1.5rem;
  padding: 1rem;
}

.projects__content{
  margin-bottom: 1.25rem;
}

.projects__subtitle{
  position: relative;
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: .75rem;
  padding-left: 1.75rem;
}

.projects__subtitle::after{
  content: '';
  width: 20px;
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  top: 50%;
  left: 0;
}

.projects_title{
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
}

.projects__buttons{
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.projects__link{
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: color .4s;
}

.projects__link i{
  font-size: 1rem;
  color: var(--title-color);
  transition: color .4s;
}

.projects__link:hover,
.projects__link:hover i{
  color: var(--first-color);
}

.projects__card:hover{
  background-color: var(--white-color);
}


/*=============== CONTACT ===============*/


/* Opaque placeholder */


/* Move label up & sticky label */


/*=============== FOOTER ===============*/

.footer{
  background-color: var(--black-color);
}

.footer__container{
  padding-block: 3rem 2rem;
  row-gap: 2.5rem;
}

.footer__links{
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.footer__link{
  color: var(--white-color);
  transition: color .4s;
}

.footer__link:hover{
  color: var(--text-color-light);
}

.footer__copy{
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  text-align: center;
}

.footer__copy a{
  color: var(--white-color);
  font-weight: var(--font-medium);

}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(0, 0%, 65%);

}

::-webkit-scrollbar-thumb{
  border-radius: .5rem;
  background-color: hsl(0, 0%, 55%);
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(0, 0%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--black-color);
  display: inline-flex;
  padding: 8px;
  font-size: 1.25rem;
  color: var(--white-color);
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s, background-color .4s;
}

.scrollup:hover{
  transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container{
    margin-inline: 1rem;
  }
  .home__image{
    width: 180px;
  }
  .about__image{
    width: 180px;
  }
  .about__shadow{
    height: 330px;
    right: -2.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .projects__container{
    grid-template-columns: 350px;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .projects__container{
    grid-template-columns: repeat(2, 350px);
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container{
    margin-inline: auto;
  }
  .section{
    padding-block: 7rem 2rem;
  }
  .section__title-1::after,
  .section__title-2::after{
    width: 70px;
    height: 48px;
  }

  .geometric-box{
    transform: scale(1.2);
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
    column-gap: 4rem;
  }

  .nav__close,
  .nav__toggle,
  .nav__title,
  .nav__name{
    display: none;
  }
  .nav__list{
    flex-direction: row;
    column-gap: 4rem;
  }
  .nav__menu{
    margin-left: auto;
  }
  .nav__link{
    color: var(--text-color);
    font-size: var(--normal-font-size);
  }
  .nav__link:hover{
    color: var(--title-color);    
  }
  .nav__link::after{
    background-color: var(--title-color);
  }
  .active-link{
    color: var(--title-color);
  }
  .nav__link-button{
    background-color: var(--black-color);
    color: var(--white-color);
    padding: 1.1rem 1.5rem;
  }
  .nav__link-button:hover{
    color: var(--white-color);
  }
  .nav__link-button::after{
    background-color: transparent;
  }

  .home__container{
    grid-template-columns: repeat(2, 460px);
    gap: 2rem 4rem;
    align-items: center;
    padding-block: 5.5rem;
  }

  .home__perfil{
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }
  .home__image{
    width: 350px;
  }
  .home__shadow{
    right: -1.25rem;
    bottom: -1.25rem;
    border: 6px solid var(--black-color);
  }

  .home__name,
  .home__description{
    text-align: initial;
  }

  .home__name{
    align-self: flex-end;
  }
  .home__info{
    margin-top: 0;
    align-self: flex-start;
  }

  .home__description{
    position: relative;
    font-size: var(--h2-font-size);
    margin-bottom: 5.5rem;
    padding-left: 3rem;
  }

  .home__description::after{
    content: '';
    width: 32px;
    height: 2px;
    background-color: var(--title-color);
    position: absolute;
    left: 0;
    top: 14px;
  }

  .home__scroll{
    margin: 0;
    display: flex;
    align-items: center;
    column-gap: .75rem;
  }

  .home__scroll-text{
    display: block;
    color: var(--text-color);
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
  }

  .home__scroll-box{
    width: 44px;
    height: 44px;
  }

  .home__scroll-box i{
    font-size: 1.25rem;
  }
  .home__perfil .geometric-box{
    top: 15rem;
  }

  .home__arrow {
    top: 5rem;
    left: -6rem;
    rotate: 80deg;
    width: 80px;
  }

  .home__line{
    left: -15rem;
    bottom: 3rem;
    width: 80px;
    rotate: 30deg;
  }

  .home__social{
    left: initial;
    right: -6rem;
    visibility: hidden;
  }

  .home__social-link{
    font-size: 1.5rem;
    /* padding: .5rem; */
  }

  .about__container{
    grid-template-columns: 440px 525px;
    gap: 1rem 9rem;
    align-items: center;
    padding-block: 1rem;
  }

  .about__perfil{
    order: -1;
    grid-row: 1 / 3;
  }
  .about__image{
    width: 350px;
  }
  .about__img{
    border: 8px solid var(--white-color);
  }
  .about__shadow{
    width: 240px;
    height: 450px;
    top: -4rem;
    right: -5.5rem;
    border-bottom: 6px solid var(--first-color);
  }

  .about__perfil .geometric-box{
    right: -4rem;
    top: 4.5rem;
  }

  .about__line{
    width: 80px;
    right: -2rem;
    top: 10rem;
  }

  .about__box{
    width: 64px;
    height: 64px;
    right: -.75rem;
  }
  .about__container .section__title-1{
    align-self: flex-end;
    margin-inline: 0;
  }
  .about__info{
    align-self: flex-start;
    padding-left: 3rem;
  }
  .about__description{
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
  }
  .about__description::after{
    width: 32px;
    height: 2px;
    left: -3rem;
    top: 14px;
  }

  .about__list{
    margin-bottom: 5rem;
  }

  .about__buttons{
    justify-content: initial;
  }
  .button__ghost{
    padding: .75rem;
  }
  .button__ghost i{
    font-size: 1.5rem;
  }
  
  .projects__container{
    grid-template-columns: repeat(3, 352px);
    padding-block: 3rem 1rem;
  }

  .projects__card{
    padding: 1.25rem 1.25rem 2.5rem;
  }

  .contact__data{
    padding: 1.25rem 1.25rem 2.5rem;
  }

  .projects__image{
    margin-bottom: 1rem;
  }
  .projects__content{
    margin-bottom: 2rem;
  }
  .projects__button{
    right: 1.25rem;
     
  }

  .footer__container{
    padding-block: 4rem;
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer__links{
    column-gap: 3rem;
    order: 1;
  }

  .scrollup{
    right: 3rem;
  }


}




/* Contact Section */

.contact__container{
    background-color: var(--container-color);
    justify-content: center;
    padding-bottom: 2rem;
}

.contact__subcontainer{
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr)); 
    justify-content: space-around;
}

.contact-card{
    width:min(520px, 92vw);
    display:grid;
    grid-template-columns: 56px 1fr;
    gap:14px;
    align-items:center;
    padding:18px;
    color:var(--text-color);
    text-decoration:none;
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)) padding-box;
    border:1px solid var(--card-border);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }
  .contact-card:hover{
    background-color: var(--white-color);
  }
  .contact-card:focus-visible{
    outline: 3px solid var(--ring);
    outline-offset: 3px;
  }

  .contact-card .icon{
    height:48px;width:48px;border-radius:5px;
    display:grid;place-items:center;
    background: var(--black-color);
    border:1px solid var(--white-color);
    color: var(--white-color);
  }

  .contact-card .label{ font-size:13px; color:var(--text-color); letter-spacing:.2px }
  .contact-card .value{ display:block; margin-top:2px; font-size:16px; line-height:1.25 }


  @media (max-width: 860px) {
  .contact__subcontainer { grid-template-columns: 1fr; }
  .contact__container p{
    margin-left: 1.25rem;
  }
}


/* Modal */


  .open-modal-btn {
    padding: .8rem 1.1rem;
    background: #2563eb;
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
  }
  .open-modal-btn:focus-visible { outline: 3px solid #93c5fd; }

  /* Modal shell */
  .modal {
    position: fixed;
    inset: 0;
    display: none;                  /* toggled via [data-open] */
  }
  .modal[data-open="true"] { display: grid; }

  .modal__overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(2px);
  }

  .modal__dialog {
    position: relative;
    margin: auto;
    width: min(92vw, 900px);
    background: var(--modal-bg);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    overflow: clip;
    display: grid;
    grid-template-rows: auto 1fr auto;
  }

  .modal__header,
  .modal__footer {
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
  }
  .modal__header {
    border-bottom: 1px solid #222;
  }
  .modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
  }
  .modal__close {
    background: transparent;
    border: 0;
    color: #d1d5db;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
  }
  .modal__close:focus-visible { outline: 3px solid #93c5fd; border-radius: 8px; }

  /* Slider */
 /* Viewport */
.slider {
  position: relative;
  overflow: hidden;
  background: #000;
  height: 680px;                 /* fixed portrait height */
}

/* Track */
.slides {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
  will-change: transform;
}

/* One slide per view */
.slide {
  flex: 0 0 100%;
  height: 100%;
  display: grid;
  place-items: center;           /* center the image */
  background: #000;
}

/* Exact image box: 362x700 centred */
.slide img {
  width: 362px;
  height: 700px;
  object-fit: contain;           /* no cropping or distortion inside the box */
  display: block;
  user-select: none;
  pointer-events: none;
}


  /* Arrows */
  .nav-btn {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    background: rgba(17, 24, 39, .7);
    border: 0;
    color: #f3f4f6;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
  }
  .nav-btn:focus-visible { outline: 3px solid #93c5fd; }
  .nav-btn--prev { left: 10px; }
  .nav-btn--next { right: 10px; }

  /* Dots */
  .dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: .75rem 1rem 1rem;
    flex-wrap: wrap;
  }
  .dot {
    width: 10px;
    height: 10px;
    background: #4b5563;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
  }
  .dot[aria-current="true"] {
    background: #e5e7eb;
    transform: scale(1.2);
  }

  /* Footer actions (optional) */
  .modal__footer {
    border-top: 1px solid #222;
    justify-content: flex-end;
    gap: .5rem;
  }
  .ghost {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: .6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
  }
  .ghost:focus-visible { outline: 3px solid #93c5fd; }

  @media (max-width: 380px) {
  .slider,
  .slide { height: calc(90vw * 700 / 362); }  /* keep 362:700 ratio */
  .slide img {
    width: 90vw;
    height: calc(90vw * 700 / 362);
  }
}
