*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  font-size: 15px;
  user-select: none;
}

html {
  background-color: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  --color-text: #000;
  --color-bg: #d5d7ce;
  --color-link: #000;
  --color-link-hover: #000;
  --color-menuItem-hover: #e63811;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: soleil, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --cursor-stroke: #000;
  --cursor-fill: none;
  --cursor-stroke-width: 1px;
  user-select: none;
  overscroll-behavior-y: contain;
}

@media (prefers-color-scheme: dark) {
  body {
    margin: 0;
    --color-text-dark: #fff;
    --color-bg-dark: #111a0d;
    --color-link: #fff;
    --color-link-hover: #fff;
    --color-menuItem-hover: #e63811;
    color: var(--color-text-dark);
    background-color: var(--color-bg-dark);
    --cursor-stroke: #fff;
  }
  .frame__menu {
    color: #fff !important;
  }
  .gallery__item-more {
    color: #fff !important;
  }
  .popup {
    background-color: #111a0d;
    color: #fff;
  }
  div.popup-header,
  .popup-body {
    background-color: #111a0d;
  }
  .fi-br-cross:before {
    color: #fff !important;
  }
  .close {
    color: #fff !important;
  }
  .share-button {
    color: #fff !important;
  }
  .menu_button_area ul li button {
    background-color: transparent;
    border: 0.5px solid #fff !important;
    color: #fff !important;
  }
  .menu_button_area ul li button.active {
    background-color: #e63811;
    color: #fff;
  }
  #myBtn {
    background-color: #fff !important;
    color: #000 !important;
  }
  .sticky {
    background: #111a0d !important;
  }
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
  content: "";
  position: fixed;
  z-index: 1000;
}

.js .loading::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .loading::after {
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
a:hover,
a:focus {
  color: var(--color-link-hover);
  outline: none;
}

main {
  min-height: 100vh;
  padding: 1.5rem 2.5rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-auto-columns: 100%;
  grid-template-areas: "header" "content" "footer";
  align-items: center;
  grid-row-gap: 6rem;
  overflow: hidden;
}

.frame {
  text-align: center;
  position: relative;
  /* z-index: 1000; */
}

.frame--header {
  grid-area: header;
}

.frame--footer {
  grid-area: footer;
}

.frame a {
  text-decoration: none;
}

.frame a:hover,
.frame a:focus {
  text-decoration: none;
}

.frame__title {
  font-size: 1rem;
  margin: 0 0 1rem;
  font-weight: bold;
  color: #e63811;
}

.frame__links {
  display: inline;
}

.frame__links a:not(:last-child) {
  margin-right: 1rem;
}

.frame__menu {
  font: inherit;
  background: none;
  border: 0;
  /* -webkit-appearance: none; */
  -moz-appearance: none;
  /* cursor: not-allowed; */
  appearance: none;
  color: #000;
}

.menu {
  grid-area: content;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  justify-content: flex-start;
  align-content: center;
  max-width: 1050px;
  font-weight: bold;
}

.menu__item {
  font-family: ivypresto-headline, serif;
  font-size: 5vw;
  font-size: clamp(2rem, 5vw, 4.75rem);
  text-transform: lowercase;
  line-height: 1;
  cursor: pointer;
  margin-right: 1.2rem;
  display: flex;
  align-items: flex-start;
  flex: none;
  position: relative;
}

.menu__item:hover,
.menu__item:focus {
  color: var(--color-menuItem-hover);
}

.menu__item-inner-wrap {
  overflow: hidden;
  position: relative;
}

.menu__item-inner {
  display: inline-block;
  margin-bottom: 1.5rem;
  will-change: transform, opacity;
}

.menu__item-number {
  font-size: 1.5vw;
  font-family: soleil, sans-serif;
}

.hover-reveal {
  position: absolute;
  z-index: -1;
  width: 150px;
  height: 200px;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.hover-reveal__inner {
  overflow: hidden;
}

.hover-reveal__inner,
.hover-reveal__img {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform;
}

.hover-reveal__img {
  background-size: cover;
  background-position: 50% 50%;
  transform-origin: 50% 100%;
}

.cursor {
  display: none;
}

.content-wrap {
  grid-area: content;
  position: relative;
}

.content {
  height: 0;
  overflow: hidden;
  position: absolute;
  opacity: 0;
  top: 10px;
  pointer-events: none;
}

.content--current {
  height: auto;
  overflow: visible;
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.content__title {
  display: flex;
  align-items: flex-start;
  font-weight: normal;
  line-height: 1;
  margin: 30px 0 5vh 0;
}

.content__title-wrap {
  overflow: hidden;
  position: relative;
}

.content__title-inner {
  display: block;
  line-height: 1.3;
  font-family: ivypresto-headline, serif;
  font-size: 5vw;
  font-size: clamp(2.5rem, 9vw, 6rem);
  text-transform: lowercase;
}

.content__title-number {
  margin-top: 1rem;
  font-size: 1.5vw;
  font-size: clamp(1rem, 1.5vw, 1.75rem);
  font-family: soleil, sans-serif;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 2.5rem;
}

.gallery__item {
  flex: none;
  margin: 0;
}

.gallery__item-img {
  width: 100%;
  overflow: hidden;
  position: relative;
  will-change: transform;
}

.gallery__item-imginner {
  background-size: cover;
  background-position: 50%;
  width: 100%;
  padding-bottom: 100%;
  will-change: transform;
}

.gallery__item-caption {
  display: grid;
  grid-template-areas: "caption-title caption-more" "caption-meta caption-meta";
}

.gallery__item-title {
  line-height: 1;
  font-family: soleil, sans-serif;
  font-size: 1.25rem;
  text-transform: lowercase;
  font-weight: bold;
  grid-area: caption-title;
  margin: 1rem 0;
  line-height: normal;
}

.gallery__item-meta {
  margin: 0;
  grid-area: caption-meta;
}

.gallery__item-more {
  grid-area: caption-more;
  align-self: center;
  justify-self: end;
  /* -moz-appearance: none;
  -webkit-appearance: none; */
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  position: relative;
  appearance: none;
  color: #000;
}

/* .gallery__item-more::after {
  content: "";
  position: absolute;
  width: 300%;
  height: 200%;
  left: -100%;
  top: -50%;
} */

/* .content__title-inner,
.content__title-number,
.gallery__item-imginner,
.gallery__item-title,
.gallery__item-meta,
.gallery__item-more {
  will-change: transform, opacity;
} */

/* .gallery__item-more:focus,
.gallery__item-more:hover {
  opacity: 0.7;
  outline: none;
} */

.back {
  position: absolute;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  top: 5px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  fill: #afb1a8;
}

.back:hover,
.back:focus {
  fill: var(--color-menuItem-hover);
  outline: none;
}

.menu_button_area {
  overflow-x: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 113%;
  margin: 0 0 1% 0;
  padding: 0;
  box-sizing: border-box;
  flex-wrap: nowrap;
  z-index: 9;
  user-select: none;
  position: relative;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.menu_button_area::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.menu_button_area {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.menu_button_area ul {
  display: flex;
  justify-content: left;
  padding: 0;
}

.menu_button_area ul li {
  list-style: none;
  margin: 0 5px 0 0;
  user-select: none;
  width: max-content;
}

.menu_button_area ul li button {
  font-size: medium;
  font-family: soleil, sans-serif;
  background-color: transparent;
  border: 0.5px solid #000;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  color: #000;
}

.menu_button_area ul li button.active {
  background: #e63811;
  color: #fff;
}

.fadein {
  animation: fadein 2s;
  -moz-animation: fadein 2s; /* Firefox */
  -webkit-animation: fadein 2s; /* Safari and Chrome */
  -o-animation: fadein 2s; /* Opera */
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-moz-keyframes fadein {
  /* Firefox */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes fadein {
  /* Safari and Chrome */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-o-keyframes fadein {
  /* Opera */
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 35px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #000000;
  color: #fff;
  cursor: pointer;
  padding: 1%;
  border-radius: 100%;
  width: 35px;
  height: 35px;
}

@media screen and (min-width: 53em) {
  html,
  body {
    height: 100vh;
    /*     overflow: hidden; */
    overflow-y: auto; /*2024.03.24*/
  }
  main {
    grid-row-gap: 0;
  }
  .frame {
    text-align: left;
    display: grid;
    align-content: space-between;
    width: 100%;
    grid-template-columns: auto auto 1fr;
  }
  .frame--header {
    grid-template-areas: "title links menu noti";
  }
  .frame--footer {
    grid-template-areas: "author ... credits";
    z-index: auto;
  }
  .frame__title {
    grid-area: title;
    margin: 0;
  }
  .frame__links {
    grid-area: links;
    padding: 0;
    margin-left: 10vw;
    justify-self: end;
  }
  .frame__noti {
    grid-area: noti;
    margin: 0;
    padding: 0;
    color: #e63811;
  }

  .frame__author {
    align-self: end;
    grid-area: author;
  }
  .frame__menu {
    justify-self: end;
    align-self: start;
    grid-area: menu;
    display: inline-block;
  }
  .frame__credits {
    justify-self: end;
    grid-area: credits;
    color: #e63811;
    margin: 0;
  }
  .hover-reveal {
    width: 300px;
    height: 400px;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-columns: 250px;
    /*     grid-auto-flow: column; */
    grid-auto-flow: dense;
    grid-template-rows: auto;
    margin-bottom: 2%;
  }
  .gallery_view {
    display: flex;
    justify-content: center;
  }
  .content--current {
    height: auto;
    scrollbar-width: none;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    min-height: 700px;
    max-height: 700px;
  }
}

@media (any-pointer: fine) {
  .cursor {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    pointer-events: none;
    z-index: 9999;
  }
  .cursor__inner {
    fill: var(--cursor-fill);
    stroke: var(--cursor-stroke);
    stroke-width: var(--cursor-stroke-width);
    opacity: 1;
  }
  .no-js .cursor {
    display: none;
  }
}

@media only screen and (max-width: 700px) {
  .cursor__inner {
    fill: var(--cursor-fill);
    stroke: var(--cursor-stroke);
    stroke-width: var(--cursor-stroke-width);
    opacity: 0;
  }
  .hover-reveal,
  .hover-reveal__inner,
  .hover-reveal__img {
    display: none;
    opacity: 0;
  }
  .menu__item-number {
    font-size: 4.5vw;
    font-family: soleil, sans-serif;
  }
  .gallery_view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    grid-gap: 0.5rem;
  }
  .gallery {
    /* min-height: 80vh; */
    min-height: 38vh;
  }
}

/* Modal Content */
.modal {
  display: block;
  /* position: fixed; */
  z-index: 9; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  max-height: 100%;
  min-height: 100%;
  overflow-y: auto; /* Enable scroll if needed */
  background-color: #d6d7cf;
  transform: translateX(100%);
  transition: all 0.4s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 0rem 2rem;
  flex-direction: row;
  font-size: larger;
  flex-wrap: nowrap;
  position: fixed;
  top: 0;
  background-color: #d5d7ce;
  z-index: 9;
  vertical-align: middle;
  /* border-bottom: 1px solid #000; */
  width: 100%;
}

.modal-content {
  margin: 0px;
  width: 100%;
  height: auto;
  /* border: solid 1px #d5d7ce; */
  /* border-top-left-radius: 30px; */
  /* border-top-right-radius: 30px; */
  z-index: 9;
  background-color: #d5d7ce;
  top: 200px;
}

.modal-content-body {
  padding: 2rem 2rem 2rem 2rem;
}

.modal-content-body2 {
  padding: 2rem 2rem 2rem 2rem;
}

#map {
  width: 100%;
  height: 200px;
}

.swiper {
  margin: 0;
  width: 100%;
  height: 100%;
  max-height: 500px;
}

.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 0 !important;
  top: 83% !important;
  left: 0;
  width: 100%;
}
.swiper-pagination-bullet-active {
  background: #111a0d !important;
}

.modal-content a {
  padding: 3% 0;
}

/* The Close Button */
.close {
  float: left;
  font-weight: bold;
  display: ruby;
  vertical-align: middle;
  background: none;
  border-style: none;
  margin-right: 2%;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.info {
  padding: 1px;
}

/*ICON CUSTOM*/
.fi-rs-marker:before,
.fi-rs-clock:before,
.fi-brands-instagram:before,
.fi-rs-phone-call:before {
  margin-right: 0.7rem;
  vertical-align: -4px;
  font-size: 1.25rem;
}

.fi-rs-bell:before {
  font-size: 1.25rem;
  color: #e63811;
}

.gallery_view {
  display: flex;
  justify-content: center;
}
.gallery__item-imginner_view {
  background-size: cover;
  background-position: 50%;
  width: 100%;
  padding-bottom: 130%;
  will-change: transform;
}

.fi-ss-heart {
  color: #e63811;
}

.swiper-scrollbar-drag {
  background-color: #fff !important;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

/* sticky - menu_button_area */
.sticky {
  position: fixed;
  top: 0;
  background: #d6d7cf;
}

.sticky + .content {
  padding-top: 60px;
}

/* 검색UI CSS */
input[type="search"] {
  width: 37px;
  height: 37px;
  box-sizing: border-box;
  border: 1px solid #000;
  border-radius: 24px;
  text-align: center;
  padding: 0px 0px 0px 5px;
  -webkit-transition: width 0.4s ease-in-out;
  transition: width 0.4s ease-in-out;
}

input[type="search"]:focus {
  width: 100%;
  padding: 6px 15px 6px 15px;
  text-align: left;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: url(../img/close.png) center center no-repeat;
  cursor: pointer;
}
