/* GlOBAL ======================================*/ 
:root {
  /* App Colors */
  --color-primary: var(--color-black);
  --color-primary-variant: var(--color-white);
  --color-accent: var(--color-blue);
  --color-text-black: var(--color-black);
  --color-text-white: var(--color-white);
  
  /* Colors */
  --color-white: #f5f5f5;
  --color-gray: #313539;
  --color-black: #1c1c1c;
  --color-blue: #0a4ea8;
  
  /* Size */
  --size-max-width: 1200px;
}
/* FONTS */
.noto-serif-kr-uniquifier> {
  font-family: "Noto Serif KR", serif;
  font-optical-sizing: auto;
  font-weight: 1rem;
  font-style: normal;
}
.gelasio-uniquifier> {
  font-family: "Gelasio", serif;
  font-optical-sizing: auto;
  font-weight: 1rem;
  font-style: normal;
}

.permanent-marker-regular {
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-style: normal;
}




/* COMMON Start======================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: stable both-edge;
}

body {
  margin: 0;
  font-family: "Gelasio", "Noto Serif KR";
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto;
}


h1,
h2,
h3,
p,
ul {
  margin: 0;
}
ul {
  list-style: none;
  padding: 0;
}
a {
  text-decoration: none;
  color: var(--color-primary-variant);
}
img {
  display: block;
}
button {
  background-color: var(--color-blue);
  cursor: pointer;
  border: none;
  outline: 0;
  border: 0;
}
button:focus {
  outline: 1px solid var(--color-accent);
}
/* COMMON finish======================================*/
/* HEADER start ======================================*/
.navbar {
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 8px 24px;
    width: 100%;    
    z-index: 999;
}
.navbar__logo {
    display: flex;
    position: fixed;
    align-items: center;
}
.navbar__logo img {
    display: block;
    position: fixed;
    top: 1px;
    width: 8rem;   
    object-fit: cover;
    margin: 0;
    opacity: 1;
}
.navbar__name {
    display: flex;
    align-items: center;
    font-size: 2rem;
    opacity: 0.6;
    color: var(--color-primary-variant);
}
.navbar__menu{
    opacity: 0.6;
    display: flex;
    justify-content: space-between;
    list-style: none;
    text-align: center;
    gap: 1.8rem;
    color: var(--color-primary-variant);
}
.navbar__menu li {
    padding: 8px 12px;
}
.navbar__menu li:hover {
    background-color: var(--color-gray);
    border-radius: 4px;
}
.navbar__instagram {
    color: var(--color-white)
}
.navbar__togglebt {
    display: none;
    position: absolute;
    right: 24px;
    font-size: 1.4rem;
    color: var(--color-white);
}
@media screen and (max-width: 768px) {
    .navbar {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 24px;
    }
    .navbar__menu{
        display: none;
        flex-direction: column;
        transition: color 0.3s ease;
        align-items: center;
        gap: .6em;
        width: 100%;
        flex-shrink: 0;
    }
    .navbar__logo img {  
        position: fixed;
        height: auto;
        z-index: 20;
    }
    .navbar__menu li {
        width: 100%;
        text-align: center;
        gap: 16px;
    }
    .navbar__instagram i {
      display: block;
      width: 100%;
      color: var(--color-primary-variant);
      flex-direction: column;
      transition: color 0.3s ease;
      align-items: center;
    }
    .navbar__togglebt {
        margin-top: 0.8rem;
        display: block;
    }
    .navbar__menu.active,
    .navbar__instagram i.active {
      display: flex;
      backdrop-filter: blur(4px);
      margin-top: 12px;
      transition: color 0.3s ease;
      background-color: var(--color-primary); opacity: .9;
      border: #f5f5f5 1px solid;
      padding: 12px 0 ;
      z-index: 999;
    }
    .navbar__menu li:hover {
      background-color: transparent;
      transform: scale(1.05);
    }
   }

/* HEADER finish ======================================*/
/* MAIN start ======================================*/
.backgroundimage {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-black);
}

.backgroundimage .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  animation: smoothFade 40s infinite ease-in-out;
}

.backgroundimage .bg:nth-child(1) { animation-delay: 0s; }
.backgroundimage .bg:nth-child(2) { animation-delay: 5s; }
.backgroundimage .bg:nth-child(3) { animation-delay: 10s; }
.backgroundimage .bg:nth-child(4) { animation-delay: 15s; }
.backgroundimage .bg:nth-child(5) { animation-delay: 20s; }
.backgroundimage .bg:nth-child(6) { animation-delay: 25s; }
.backgroundimage .bg:nth-child(7) { animation-delay: 30s; }
.backgroundimage .bg:nth-child(8) { animation-delay: 35s; }


@keyframes smoothFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  12%  { opacity: 1; }
  16%  { opacity: 0; }
  100% { opacity: 0; }
}



.overlay__content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
}

.overlay__content h1 {
  white-space: nowrap;
  font-size: 3rem;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  cursor: default;
}


.overlay__content p {
  max-width: 440px;
  margin-top: 3rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-primary-variant);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  cursor: default;
}

/* MAIN finish ======================================*/
/* FOOTER start ======================================*/
footer {
  font-size: 0.8rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 30px 0;
  background-color: transparent;
  z-index: 10;
}
.copyright {
  text-align: center;
  color: var(--color-primary-variant);
  cursor: default;
}
/* FOOTER finish */


/* ====================================================== */

/* ======================ABOUT=========================== */

/* ======================================================= */

.about__section {
  background-color: var(--color-primary);
  color: var(--color-primary-variant);
  min-height: 100vh;
  padding-top: 160px;
  text-align: center;
  padding-bottom: 80px; 
  overflow-x: hidden;
}

.about__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8rem;
  letter-spacing: 0.5em;
  cursor: default;
}

.about__whitebox {
  max-width: 1000px; 
  height: fit-content;
  width: 90%;
  background: var(--color-primary-variant);
  border-radius: 4px;
  color: var(--color-primary);
  margin: 0 auto;
  padding: 4rem;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
  backdrop-filter: blur(4px);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.about__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about__photo {
  width: 80%;
  align-items: flex-end;
  max-width: 440px;
  margin-top: 6rem;
  margin-left: 4rem;
  box-shadow: 0 8px 24px rgba(62,62,62,0.08);
}

.about__text {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.005em;
  justify-content: left;
  align-items: flex-start;
  text-align: left;
}

.about__right {
  display: flex;             
  flex-direction: column;    
  justify-content: flex-start;
  text-align: left;          
  line-height: 1.75;
}

.about__right p {
  font-size: .8rem;
  line-height: 1.7;
}

.about__right__img {
  width: 60px;
  margin-top: 16px;
  margin-left: 24rem;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  
 .about__grid {
    grid-template-columns: 1fr;
  }

  .about__left {
    text-align: center;
  }

  .about__right {
    text-align: left;
  }
  .about__photo {
    align-items: center;
    margin-left: 0;
  }
  .about__whitebox {
    width: 92%;
    padding: 2rem;      
  }
}


/* ====================================================== */

/* ======================WORKS PAGE STARTS=========================== */

/* ======================================================= */



.works__section {
  background-color: var(--color-primary);
  color: var(--color-white);
  min-height: 100vh;
  padding-top: 160px;
  text-align: center;
}

.works__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8rem;
  letter-spacing: 0.5em;
  cursor: default;
}

.works__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 80px;
  justify-items: center;
  padding: 0 60px 100px;
}

.polaroid {
  background: var(--color-primary-variant);
  border-radius: 4px;
  width: 300px;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.photo__frame {
  position: relative;
  width: 100%;
  height: 300px;
  background: var(--color-primary);
  overflow: hidden;
  cursor: pointer;
}

.photo {
  filter: grayscale(100%);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 2s ease;
}

.photo.front { opacity: 0; }
.polaroid:hover .photo.back { opacity: 0; }
.polaroid:hover .photo.front { opacity: 1; }

.caption {
  position: relative;
  height: 80px;
  padding: 0 12px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-family: "Permanent Marker", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: default;
  opacity: .8;
}

.placeholder .photo__frame {
  background: var(--color-primary); 
  display: flex;
  justify-content: center;
  align-items: center;
}

.empty__photo {
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.9;
}

.placeholder .caption {
  color: var(--color-primary);
  font-style: oblique;
  opacity: 0.2;
  text-transform: uppercase;
  font-weight: 500;
  cursor: default;
}

@media screen and (max-width: 1024px) {
  .works__gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px 100px;
    gap: 40px;
  }

  .polaroid {
    width: 100%;
    max-width: 400px;
  }

  .overlay__content h1 {
    font-size: 2.4rem;
    margin-top: 15rem;
  } 
   .overlay__content p {
  max-width: 400px;
  margin-top: 3rem;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--color-primary-variant);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  cursor: default;
  }

}

@media screen and (max-width: 600px) {
  .works__gallery {
    grid-template-columns: 1fr;
  }

  .overlay__content h1 {
    font-size: 2.6rem;
  } 


  .overlay__content p {
  max-width: 400px;
  margin-top: 3rem;
  font-size: .8rem;
  line-height: 1.6;
  color: var(--color-primary-variant);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  cursor: default;
  }
}

/* WORKS PAGE finish */
/* ================= */







/* =======*/
/* POPUP */
/* =======*/

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background-color: rgba(12, 12, 12, 0.85); 
  backdrop-filter: blur(4px); 
  justify-content: center;
  align-items: center;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.popup.show {
  display: flex;
  opacity: 1;
}

.popup__content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  /* min-height: 70vh;  */
  overflow-y: auto;
  background: var(--color-primary-variant);
  padding: 30px;
  text-align: center;
  color: var(--color-primary-variant);
  animation: fadeIn 0.4s ease;
  transform: scale(0.95);
  transition: transform 0.35s ease;
}

.popup.show .popup__content {
  transform: scale(1);
}

.popup__image {
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
  margin: auto;
  width: 80%;
  max-width: 600px;
  margin-bottom: 40px;
  border-radius: 4px;
  /* aspect-ratio: 4/3; */
  object-fit: cover;
}

.popup__image.fade-out {
  opacity: 0;
}

.popup__content h2 {
  color: var(--color-text-black);
  margin-bottom: 20px;
  font-size: 2.4rem;
  cursor: default;
}

.popup__content p {
  color: var(--color-text-black);
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.5;
  cursor: default;
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 2.4rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.popup__close:hover {
  opacity: 0.6;
}
.popup__body {
  position: relative;    
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.popup__prev,
.popup__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 10px;
  transition: opacity 0.3s ease;
  z-index: 999;
}
.popup__prev {
  left: -40px;   
}
.popup__next {
  right: -40px;   
}

.popup__prev:hover,
.popup__next:hover {
  opacity: 0.6;
}

.popup__prev {
  left: 10px;
}

.popup__next {
  right: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media screen and (max-width: 768px) {
  .popup__content {
    width: 90%;
    padding: 20px;
  }

  .popup__body h2 {
    font-size: 1.8rem;
  }

  .popup__image {
    width: 95%;
  }

  .popup__body p {
    font-size: 0.95rem;
  }
  .popup__prev {
    left: 10px;  
    color: var(--color-primary-variant);
  }
  .popup__next {
    right: 10px;
    color: var(--color-primary-variant);

  }
}

@media screen and (max-width: 480px) {
  .popup__content {
    width: 94%;
    padding: 16px;
  }

  .popup__body h2 {
    font-size: 1.2rem;
  }

  .popup__body p {
    font-size: 0.8rem;
  }

  .popup__close {

  font-size: 1.6rem;
 
}
}


/* ====================================================== */

/* SERIES */

/* ====================================================== */


.series__section {
  background-color: var(--color-primary);
  color: var(--color-primary-variant);
  min-height: 100vh;
  padding-top: 160px;
  text-align: center;
  padding-bottom: 80px; 
  overflow-x: hidden;
}

.series__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8rem;
  letter-spacing: 0.5em;
  cursor: default;
}

/* ==========================
   SERIES PAGE
========================== */

.seriesWrap {
  width: 100%;
  overflow-x: hidden;
  background: var(--color-black);
}

.seriesItem {
  position: relative;
  width: 100%;
  height: 100vh;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.seriesImg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0.95;
  transition: all .3s ease;
}

.seriesItem:hover .seriesImg {
  filter: grayscale(0%);
  opacity: 1;
}

.seriesTitle {
  position: relative;
  z-index: 5;
  font-size: 3rem;
  letter-spacing: 0.3em;
  font-family: "Gelasio", serif;
  color: var(--color-white);
  opacity: 0.9;
}

/* placeholder */
.placeholder .seriesImg {
  background: #999;
  opacity: .4;
}

/* ========== LIGHTBOX ========== */
.slb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9990;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.slb.show {
  display: flex;
  opacity: 1;
}

.slbImg {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  opacity: 1;
  transition: opacity .35s ease;
}

.slbImg.fade {
  opacity: 0;
}

.slbClose {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  background: none;
  color: #fff;
  cursor: pointer;
  border: none;
}

.slbNav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  opacity: 0.6;
  transition: .3s;
}

.slbNav:hover {
  opacity: 1;
}

.slbNav.prev {
  left: 24px;
}

.slbNav.next {
  right: 24px;
}


@media(max-width:768px){
  .seriesTitle { font-size: 2rem; }
  .slbNav { font-size: 2rem; }
}







/* ====================================================== */

/* NOTES */

/* ====================================================== */

.notes__section {
  background-color: var(--color-primary);
  color: var(--color-primary-variant);
  min-height: 100vh;
  padding-top: 160px;
  text-align: center;
  padding-bottom: 80px; 
  overflow-x: hidden;
}

.notes__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8rem;
  letter-spacing: 0.5em;
  cursor: default;
}

/*************************************
 * NOTES — LIST (3-col)
 *************************************/
.notes__list {
  width: min(900px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  gap: 2.8rem;
}

.note__row {
  display: grid;
  grid-template-columns: 60px 1fr 120px;
  gap: 1.4rem;
  align-items: center;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}

.note__num {
  font-size: 1rem;
  opacity: 0.45;
  font-family: "Gelasio";
}

.note__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: .01em;
}

.note__excerpt {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  margin-bottom: .35rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 60ch;
}

.note__date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.note__thumb img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.85;
  border-radius: 3px;
}

/* hover */
.note__row:hover .note__title {
  text-decoration: underline;
}

/*************************************
 * NOTES — POPUP
 *************************************/
.notePopup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.notePopup.show {
  display: flex;
}

.notePopup__content {
  background: var(--color-white);
  color: var(--color-black);
  width: 90%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 4px;
  padding: 2rem;
  position: relative;
}

.notePopup__close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-black);
}

.notePopup__title {
  font-size: 1.6rem;
  margin: 0 0 .5rem;
  font-family: "Gelasio", serif;
  font-weight: 700;
}

.notePopup__date {
  color: rgba(0,0,0,.5);
  font-size: .9rem;
  margin-bottom: 1.6rem;
}

.notePopup__body {
  color: var(--color-black);
  line-height: 1.7;
  font-size: 1rem;
  white-space: pre-line;
}






/* ====================================================== */

/* CONTACT */

/* ====================================================== */

.contact__section {
  background-color: var(--color-primary);
  color: var(--color-primary-variant);
  min-height: 100vh;
  text-align: center;
  height: 100vh;
  
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 160px;
  padding-bottom: 80px;
}

.contact__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  margin-bottom: 8rem;
}

.contact__whitebox {
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  max-width: 1000px;
  width: 92%;
  overflow-y: hidden;    
  background: var(--color-primary-variant);
  color: var(--color-primary);
  margin: 0 auto;
  padding: 3rem;
  box-shadow: rgba(50,50,93,0.25) 0px 30px 60px -12px inset,
              rgba(0,0,0,0.3) 0px 18px 36px -18px inset;
}

.contact__suggestion {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 4rem;
  text-align: center;
  line-height: 1.6;
  font-style: italic;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  text-align: left;
}

.contact__form label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.contact__form input,
.contact__form textarea {
  border: none;
  border-bottom: 1px solid #bbb;
  padding: 8px 8px;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
}

.contact__form textarea {
  height: 120px;
  resize: none;
}

.contact__submit {
  margin-top: 1rem;
  align-self: flex-end;
  padding: 8px 24px;
  background: var(--color-primary-variant);
  border: var(--color-primary) 1px solid;;
  border-radius: 4px;
  font-size: 1rem;
  color: var(--color-primary);
  cursor: pointer;
}

.contact__submit:hover {
  color: var(--color-primary-variant);
  opacity: 1;
  background: var(--color-primary);
}

.contact__popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.contact__popup.is-visible {
  display: flex;
}

.contact__popup-inner {
  background: var(--color-white);
  color: var(--color-text-black);
  padding: 2rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-align: center;
  min-width: 260px;
}

.contact__popup-inner button {
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--color-black);
  background: transparent;
  cursor: pointer;
}

.contact__popup-inner button:hover {
  background: var(--color-black);
  color: var(--color-white);
}

