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

:root {
  --bg: hsl(0, 0%, 100%);
  --txt: #ffffff;
  --txt-dark: hsl(0, 0%, 15%);
  --brand-col1: #5a5560;
  --brand-col2: #46344e;
  --brand-col3: #9d8d8f;
  --shadow: 4px 4px 20px 4px rgba(0,0,0,0.4);
  --font1: system-ui, sans-serif;
}

html {
  font-family: var(--font1);
  font-weight: 200;
  font-size: 62.5%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--txt);
  background: var(--brand-col2);
  font-size: 1.6rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
  "navbar"
  "main"
  "footer";
}

  aside {
    position: fixed;
    width: 300px;
    display: none;
  }

a {
  color: inherit;
  background-color: transparent;
  text-decoration: none;
  transition: 150ms ease;
}

a:active, a:hover {
  outline: 0;
}

ul, li {
  list-style: none;
}

input,
textarea,
select,
button {
  font-size: inherit;
  font-family: inherit;
}

img,
video,
iframe {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
  object-fit: cover;
  border: 0;
}

button {
  display: block;
  padding: 12px 25px;
  font-size: 1.8rem;
  font-weight: 700;
  border: none;
  outline: none;
  border-radius: 6px;
  color: var(--bg);
  background: var(--blue-dark);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  opacity: 1.0;
  transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -ms-transition: opacity .2s ease-in-out;
  -o-transition: opacity .2s ease-in-out;
  cursor: pointer;
}
button * {
  pointer-events: none;
}    
button:hover {
  opacity: 0.7;
}

/* --------------------------------------- */
/* ------- START CUSTOM STYLES HERE ------ */
/* --------------------------------------- */


nav {
  grid-area: navbar;
  position: sticky;
  top: 0;
  height: 75px;
  background: var(--brand-col3);
  display: flex;
  justify-content: space-between;
  z-index: 100;
}

.logo {
  position: absolute;
  top:8px;
  left: 20px;
  width: 180px;
  height: 180px;
  line-height: 170px;
  border-radius: 50%;
  background: var(--brand-col2);
  border: 12px solid var(--brand-col3);
  transform: rotate(340deg);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.logo span {
  line-height: 1em;
  font-size: 32px;
  text-align: center;
} 

.main-menu {
  display: flex;
  flex: 1;
  height: 100%;
  justify-content: end;
}

.main-menu {
  display: flex;
  align-items: stretch;
}

.main-menu li a {
  padding: 15px 25px;
  display: flex;
  align-items: center;
  color: var(--txt);
  font-size: 2rem;
  font-weight: 400;
  height: 100%;
}

.main-menu li a:hover {
  color: white !important;
  background-color: var(--brand-col2);
}

.main-menu li a.active-link {
  color: white !important;
  background-color: var(--brand-col2);
}

#hamburger {
  position: absolute;
  top: 0;
  right: 0;
  width: 65px;
  height: 100%;
  fill: var(--brand-col2);
  display: none;
  place-content: center;
  z-index: 500;
}

.special-li {
  display: none;
  justify-content: end;
}

#close-menu {
  width: 65px;
  height: 75px;
  fill: var(--brand-col2);
  display: grid;
  place-content: center;
}

main {
  grid-area: main;
  padding-bottom: 150px;
  overflow: hidden;
}

footer {
  grid-area: footer;
  padding: 2em;
  background: var(--brand-col3);
}

.copywrite {
  margin: auto;
  padding-bottom: 50px;
  max-width: 500px;
  text-align: center;
}

.breadcrumb {
  padding: 2rem;
  color: var(--brand-col3);
  display: flex;
  justify-content: start;
  gap: 4px;
  font-size: 2rem;
}

.breadcrumb a {
  color: #eeeeee;
  font-weight: 400;
}


article .breadcrumb {
  color: var(--brand-col3);
  background: #eeeeee;
}

article .breadcrumb a {
  color: var(--brand-col2);
}

.post-content {
  margin-top: 25px;
  padding: 1.5rem;
}

.post-content p {
  padding: 1.2rem 0;
}

.spacer {
  margin-top: 90px;
}

article#post-wrapper {
  margin-top: 50px;
  border-radius: 8px;
  overflow: hidden;
}

/* ################################################### */
/* ######## Hero and Feature Top of each page ######## */
/* ################################################### */

section.hero {
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

section.hero img {
  width: 100%;
  object-fit: cover;
  object-position: center top;  
}

section.feature {
  position: relative;
}
section.feature img {
  width: 100%;
  aspect-ratio: 21/9;
}

.title-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
}

/* ################################# */


section.feature h1 {
  width: 100%;
  padding: 1.5rem;
  color: var(--brand-col2);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.feature-block h3 {
  margin-top: 25px;
  padding: 8px;
  text-align: center;
  color: yellow;
}

.feature-block p {
  margin-top: 20px;
}

.feature-block ul {
  margin-top: 20px;
  padding: 1em;
  border: 2px solid var(--brand-col1);
}

.feature-block ul li {
}

.feature-block ul li a {
  color: var(--brand-col2);
  padding: 6px;
  font-weight: 400;
}

.boxed {
  display: grid;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  border-radius: 8px;
}

.content-section {
  margin: 35px auto;
  padding: 2rem;
  padding-bottom: 75px;
  width: 100%;
  max-width: 1200px;
}

.content-section h2 {
  margin: 15px 0 30px;
  font-size: clamp(2.4rem, 3.6vw + 1rem, 4.6rem);
  color: var(--brand-col3);
}

.content-section h3 {
  margin: 15px 0 30px;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  color: #eeeeee;
  text-align: center;
}

.content-section p {
  padding: 2rem 3rem;
  font-size: 2rem;
  line-height: 1.8;
  font-weight: 400;
}

.content-section ul {
  margin: 25px 0 50px;
  padding-left: 10rem;
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
}

.content-section ul li {
  padding: 10px 0;
  color: yellow;
  list-style-type: square;
}


body .unboxed {
  color: var(--brand-col1);
  background: #eee;
  max-width: none;
}

body .unboxed ul li {
  color: var(--brand-col);
}



.split-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  /* place-items: center; */
}

.split-two p {
  padding: 2.5rem;
  font-size: 2.2rem;
  text-align: justify;
  text-justify: inter-word;
}

.split-two strong {
  padding: 0;
  font-size: 4rem;
  color: yellow;
}

strong::before {
  content: "❝";
  margin-right: 4px;
}

strong::after {
  content: "❞";
  margin-left: 4px;
}



article.modcell {
  gap: 2px;
  cursor: pointer;
}


[data-block="text-block"] {
  padding: 1.5em;
  color: #000000;
  background: #eeeeee;
  font-size: 2rem;
  line-height: 1.8;
}

[data-block="text-block"] p {
  margin-bottom: 1.8rem;
}

[data-block="img-block"] {
  border-top: 4px solid #eee;
  padding: 1em;
  background: #dddddd;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
}

[data-block="img-block"].contain-img .block-container {
  border: none;
  height: auto;
  max-height: 500px;
}

[data-block="img-block"].contain-img img{
  object-fit: contain;
}

[data-block="tags-block"] {
  padding: 15px;
  background: #dddddd;
  display: flex;
  flex-wrap: wrap;
  white-space: normal;
  word-break: keep-all;
  gap: 5px;
}

[data-block="tags-block"] a {
  display: block;
  padding: 6px 15px;
  background: var(--brand-col1);
  border-radius: 8px;
}


.block-container {
  border: 3px solid;
  border-radius: 8px;
  overflow: hidden;
}

.block-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}


.mod {
  position: relative;
  /* outline: 3px dotted yellow; */
  background: white;
  cursor: text;
  caret-color: var(--brand-col2);
  z-index: 10;
}

.popup {
  position: absolute;
  background: #fff;
  padding: 8px;
  display: flex;
  gap: 6px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup.hidden {
  display: none;
}

.popup button {
  font-size: 1.6rem;
  padding: 6px 8px;
  cursor: pointer;
  box-shadow: none;
  border: none;
  background: transparent;
}


.cat-title {
  position: relative;
  margin: 20px 0;
  text-align: center;
  color: var(--brand-col3);
  font-family: 'Caveat', cursive;
  font-size: clamp(3.4rem, 4.6vw + 1rem, 6rem);
  display: inline-block;
  z-index: 1;
}

.cat-title::before {
  position: absolute;
  content: "";
  top: 57%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-col1);
  z-index: -1;
  transform: translateY(-50%);
}

.grid-container {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, 250px); */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* justify-content: center; */
  gap: 2em;
}

.grid-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.grid-item:hover {
  transform: scale(1.05);
  z-index: 1;
}

.grid-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.grid-item h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 4px;

  display: grid;
  place-items: center;

  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;

  color: #eeeeee;
  color: var(--brand-col2);
  text-align:center;
  background: rgba(0, 0, 0, 0.5);

  background: var(--brand-col3);

  overflow:hidden;
}

.product-grid {
  margin-top:2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:1.5rem;
}

.product-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.product-item img {
  aspect-ratio: 4/3;
}

.product-item h4 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 3px;
  color: #ffffff;
  text-align:center;
  background: rgba(0, 0, 0, 0.4);
}

#imageFS {
  position: fixed;
  inset: 0;
  background: var(--brand-col3);
  opacity: 0;
  transition: opacity 500ms ease-in-out;
  pointer-events: none;
  z-index: 5000;
}

#imageFS.show {
  opacity: 1;
  pointer-events: all;
}

.ss-image {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-full {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ss-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.5);
  fill: white;
  border-radius: 8px;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.ss-controls {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.ss-prev, .ss-play, .ss-next {
  margin: 5px;
  width: 90px;
  height: 70px;
  color: white;
  font-weight: 400;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  fill: white;
  border-radius: 8px;
  display: grid;
  place-content: center;
  pointer-events: all;
  cursor: pointer;
}


/* ####################################### */
/* ---- FULL SCREEN SLIDE SHOW STYLES ---- */

.img-viewer {
  position: fixed;
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background-color: var(--brand-col2);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  touch-action: none;
  overflow: hidden;
  z-index: 1100;
}

.img-viewer.show {
  opacity: 1;
}

.iv-header {
  padding: 0 15px;
  height: 6rem;
  display: flex;
  justify-content: end;
  align-items: center;
}

.loading {
  position: fixed;
  bottom: 12px; right: 15px;
  color: var(--brand-col3);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.loading.show {
  opacity: 0.8;
}

#close-btn {
  margin: 0;
  padding: 0;
  width: 4.5rem;
  font-size: 3.4rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.iv-main {
  flex: 1;
  overflow: hidden;
}

.iv-main {
  opacity: 0;
  transition: opacity 350ms ease-in-out;
  overflow: hidden;
}

.iv-main.show {
  opacity: 1;
} 

.iv-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}


.iv-main img {
  object-fit: contain;
}

.iv-footer {
  padding: 5px 10px 12px;
  font-size: 1.6rem;
  text-align: center;
}

#prevBtn, #nextBtn {
  position: absolute;
  top: 50%;
  width: 5rem;
  height: 8rem;
  background: var(--brand-col2);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

#prevBtn.show, #nextBtn.show {
  opacity: 0.8;
}


#prevBtn span, #nextBtn span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-left: 0;
  border-right: 20px solid #ffffff;
}

#prevBtn {
  left: 0;
  padding-right: 5px;
  border-radius: 0 6px 6px 0;
}

#prevBtn span {
  left: 12px;
  border-left: 0;
  border-right: 20px solid #ffffff;
}


#nextBtn {
  right: 0;
  padding-left: 5px;
  border-radius: 6px 0 0 6px;
}

#nextBtn span {
  left: 12px;
  border-left: 20px solid #ffffff;
  border-right: 0;
}

/* ####################################### */
/* ####################################### */



.category-block {
  padding: 0;
  display: flex;
  justify-content: end;
}

.dropdown {
  position: relative;
  min-width: 200px;
  display: inline-block;
  font-family: inherit;
  text-align: center;
}

.dropdown-toggle {
  background: var(--brand-col2);
  padding: 10px 14px;
  border: 1px solid var(--brand-col3);
  cursor: pointer;
  border-radius: 4px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #eeeeee;
  border: 1px solid #ccc;
  margin-top: 4px;
  min-width: 200px;
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.dropdown-item {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  text-align: left;
  color: var(--brand-col2);
}

.dropdown-item:hover {
  color: #eeeeee;
  background-color: var(--brand-col2);
}

.dropdown-item.selected {
  color: #eeeeee;
  background-color: var(--brand-col2);
}

#global-search-button {
  position: fixed;
  bottom: 40px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  fill: white;
  border-radius: 8px;
  display: grid;
  place-content: center;
  pointer-events: all;
  cursor: pointer;
  z-index: 10;
}

.full-screen-container {
  position: fixed;
  inset: 0;
  /* padding: 50px; */
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  cursor: pointer;
}

.search-box-wrapper {
  padding: 75px 35px;
  width: 100%;
  background: #222222;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  cursor: default;
}

#searchInput {
  padding: 10px 25px;
  width: 100%;
  font-size: 2.4rem;
}


#searchBtn {
  padding: 10px 25px;
  font-size: 2.4rem;
  color: white;
  background: var(--brand-col3);
  border-radius: 8px;
  cursor: pointer;
}

#searchBtn svg {
  pointer-events: none;
}

.search-result {
  margin-bottom: 10px;
  height: 120px;
  color: black;
  background: #ccc;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 120px 1fr;
  overflow: hidden;
}

.search-result img {
  padding: 7px;
}

.search-content {
  padding: 8px 18px;
}

input.error {
  border: 2px solid red;
  color: red; /* text color */
}
::placeholder {
  color: gray; /* default placeholder color */
}
input.error::placeholder {
  color: red; /* placeholder color when error */
}

/* RESPONSIVE STYLES */

@media (max-width: 768px) {

  body {
    grid-template-columns: 1fr;
  }

  aside {
    position: fixed;
    width: 300px;
    display: none;
  }

  .show {
    display: block;
  }

  section.hero {
    aspect-ratio: 16 / 9;
  }


  .content-section h2 {
    margin: 20px 0 10px;
  }

  .content-section ul {
    margin: 15px 0 35px;
    padding-left: 7rem;
    font-size: 2.6rem;
  }

  .content-section ul li {
    padding: 8px 0;
  }

  .full-screen-container {
    /* padding: 25px ; */
  }

}

@media (max-width: 500px) {

  .logo {
    position: absolute;
    top:4px;
    left: 4px;
    width: 110px;
    height: 110px;
    line-height: 110px;
    border: 4px solid var(--brand-col3);
  }

  .logo span {
    font-size: 18px;
  } 

  .main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--brand-col3);
    border-left: 1px solid var(--brand-col2);
    transition: right 300ms ease-out;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
  }

  .main-menu.show {
    right: 0;
    pointer-events: all;
  }

  #hamburger {
    display: grid;
  }

  .special-li {
    display: flex;
  }

  .main-menu li {  

  }

  .split-two {
    grid-template-columns: 1fr;
  }

  .split-two p {
    padding: 1rem;
    font-size: 1.8rem;
  }

  .split-two strong {
    font-size: 3rem;
  }

  .spacer {
    margin-top: 25px;
  }

  .breadcrumb {
    padding: 2rem;
    color: var(--brand-col3);
    display: flex;
    justify-content: start;
    gap: 2px;
    font-size: 1.6rem;
  }

  section.hero {
    aspect-ratio: 5 / 4;
  }

    .content-section {
    margin: 35px auto;
    padding: 1rem;
    padding-bottom: 50px;

  }

  .content-section h2 {
    margin: 20px 0 10px;
  }

  .content-section p {
    padding: 2rem;
    font-size: 2rem;
    line-height: 1.8;
    font-weight: 200;
  }

  .content-section ul {
    margin: 15px 0 25px;
    padding-left: 3.6rem;
    font-size: 2.2rem;
  }

  .content-section ul li {
    padding: 6px 0;
  }

  .full-screen-container {
   /* padding: 10px ; */
  }

  .search-box-wrapper { 
    padding: 50px 20px;
    display: block;
  }

  #searchInput {
    padding: 8px 15px;
    font-size: 2rem;
  }

  #searchBtn {
    margin-top: 20px;
    padding: 8px 15px;
    font-size: 2rem;
    text-align: center;
  }

}