/*
Theme Name: dspacevt
Theme URI: https://dspacevt.com
Author: Abi Wright
Description: Custom WordPress theme built from scratch
Version: 1.0
*/

/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap');

/* ===== Header ===== */
.site-header {
  position: relative;
  z-index: 1000;
}

.site-title{
  color: black;
  font-size: 5rem;
  font-weight: bold;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  margin-right: 1rem;
  padding-left: 30px;
  padding-top: 30px;
  top: 20px; 
  left: 20px; 
  z-index: 1001; 
  display: block;
  max-width: 120px; /* adjust size */
  height: auto;
  letter-spacing: .3em;
}
.site-label {
  color: black;
  font-size: 2rem; 
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  margin-right: 1rem;
  padding-left: 30px;
  top: 20px; 
  left: 20px; 
  z-index: 1001; 
  display: block;
  height: auto;
  letter-spacing: .1em;
}


.site-title:hover {
  opacity: 0.8; 
  color: #f560a0; 
  
}
/* Button position */
.menu-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1002;
  font-size: 28px;
  color: rgb(255, 254, 254);
  padding-top: 30px;
  
}

/* Icon states */
.menu-toggle .icon-close {
  display: none;
}

.menu-toggle.is-open .icon-open {
  display: none;
}

.menu-toggle.is-open .icon-close {
  display: inline;
}
.icon-close, .icon-open{
    background-color: #060606;
    font-size: 2rem;
    border-left: thick solid black;
    border-right: thick solid black;
    
}
/* Menu overlay */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}


.fullscreen-menu.is-open,
.fullscreen-menu.is-closing {
  opacity: 1;
  pointer-events: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.sub-menu, .menu-list{
    list-style: none;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20pt;
    color:#fffefe;
    letter-spacing: .3rem;

}
/*Arrow for Submenu items*/
/* Parent item */
.menu-item-has-children {
  width: 100%;
}

/* Toggle button */
.submenu-toggle {
  background: none;
  border: 0;
  color: white;
  font-size: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

/* Arrow */
.submenu-toggle .arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  transition: transform 0.4s ease;
}

/* Rotate arrow when open */
.menu-item-has-children.is-open .arrow {
  transform: rotate(-135deg);
}

/* Submenu hidden */
.sub-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.4s ease;
}

/* Submenu visible */
.menu-item-has-children.is-open .sub-menu {
  max-height: 500px;
  opacity: 1;
}

/* Submenu links */
.sub-menu li {
  margin-top: 16px;
  text-align: center;
}

.sub-menu a {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
}

/* Transisiton Menu*/
/* Base state */
.menu-list li {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* OPEN: animate IN */
.fullscreen-menu.is-open .menu-list li {
  opacity: 1;
  transform: translateY(0);
}
.fullscreen-menu:not(.is-open) .menu-list li {
  transform: translateY(16px);
}
/* IN STAGGER (top → bottom) */
.fullscreen-menu.is-open .menu-list li:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.is-open .menu-list li:nth-child(2) { transition-delay: 0.2s; }
.fullscreen-menu.is-open .menu-list li:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-menu.is-open .menu-list li:nth-child(4) { transition-delay: 0.4s; }
.fullscreen-menu.is-open .menu-list li:nth-child(5) { transition-delay: 0.5s; }

/* OUT STAGGER (bottom → top) */
.fullscreen-menu:not(.is-open) .menu-list li:nth-child(1) { transition-delay: 0.5s; }
.fullscreen-menu:not(.is-open) .menu-list li:nth-child(2) { transition-delay: 0.4s; }
.fullscreen-menu:not(.is-open) .menu-list li:nth-child(3) { transition-delay: 0.3s; }
.fullscreen-menu:not(.is-open) .menu-list li:nth-child(4) { transition-delay: 0.2s; }
.fullscreen-menu:not(.is-open) .menu-list li:nth-child(5) { transition-delay: 0.1s; }


html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}
/* Events section home */
.events-conatiner{
  display: grid;
  justify-content: center;
}
.single-event{
  position: relative;
  display: inline-block;
}
.event-date{
  position: absolute;
  top: 29%;
  left: 36%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 10px 20px;
  font-size: 50px;
  text-align: center;
  border-radius: 5px;
}
/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  background: white; 
  color: black;
  font-family: 'Space Grotesk', sans-serif;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  color: black;
  font-size: 2rem;  
  margin: 0 12px;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  color: #f560a0; 
  transform: scale(1.2); 
}
/* Slide Show*/
.slideshow-container {
  width: 100vw;
  height: 100vh; 
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff; 
  padding-top: 5em;
}

.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px; 
  cursor: grab;
  height: 100%;
  padding: 0 10px; 
  user-select: none;
}

.slide {
  flex: 0 0 100%;
  height: 100%;   
  border-radius: 12px; 
  overflow: hidden;
  position: relative;
  background: #fff; 
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}
.slides-wrapper.dragging {
  cursor: grabbing;
}

.slides-wrapper img {
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
}
.dspace-container{
    background-color: #dfdfdf;
}
.masthead-image {
  text-align: center; 
  margin: 2em 0;      
}

.masthead-image img {
  display: inline-block; 
  max-width: 100%;       
  height: auto;
}
.about-image {
  display: flex;
  justify-content: center;
  margin-bottom: 2em;
}
.about-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 12px -12px 32px rgba(0, 0, 0, 0.2);
}
.doctor-who-img{
   border-radius: 4px;
   box-shadow: 12px -12px 32px rgba(0, 0, 0, 0.2);
}
.about-me-container {
  max-width: 1100px;       /* optional: limits the width for readability */
  margin: 0 auto;         /* center on the page */
  padding: 20px;
  display: flex;
  flex-direction: column; /* stack children vertically */
  gap: 20px;    
}
.cv-conatiner{
    padding: 6em;
    
}
.cv-bullet{
    font-family: 'Space Grotesk', sans-serif;
    line-height: 2em;
}
ul{
    padding: 2em;
}
.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.paragraph-about {
  flex: 2;
  line-height: 2em;
  font-size: 12pt;
}
.doctor-who{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 6em;
}

.calender-home{
    padding-left: 6em;
    padding-right: 6em;
    display: flex;
    align-items: flex-start;
    gap: 2em;
}
.calender-home > * {
    flex: 1;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.single-event {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 15px;
}

.single-event img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}
/* ===============================
   BODY BASE
================================ */

body {
  min-height: 100svh; /* modern viewport unit */
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.5;
  background-color: #fffefe;
  color: #060606;
  overflow-x: hidden;
}

/* Fallback for older browsers */
@supports not (height: 100svh) {
  body {
    min-height: 100vh;
  }
}


/* ===============================
   TYPOGRAPHY
================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.2;
}

p {
  font-family: 'Space Grotesk', sans-serif;
}
.paragraph{
    padding: 6em;
    line-height: 2em;
    font-size: 12pt;
    
}
.recent-work-container{
    background-color: #dfdfdf;
}
.home-header{
    text-align: center;
    font-size: 30pt;
    padding: 2em;
    letter-spacing: .2em;
}
.about-header{
    text-align: center;
    font-size: 30pt;
    padding-top: 2em;
    letter-spacing: .2em;
}
.img-recent{
    width: 100vw;          
    height: 100vh;         
    object-fit: cover;     
    display: block; 
    padding-bottom: 6em;
    padding-left: 6em;

}
.recent-work-image{
    justify-content: center;
    display: flex;
}
/* Gallery grid */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6em;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 10px); /* 3 images per row, adjust as needed */
  height: 250px;                   /* fixed height for uniformity */
  overflow: hidden;
  position: relative;
  cursor: pointer
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* crop/scale image to fill container */
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Carousel overlay */
.carousel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.carousel-container {
  position: relative;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  display: inline-block;
}

.carousel-container img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Caption on hover */
.carousel-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-caption {
  opacity: 1;
}

/* Carousel arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #939090;
  font-size: 2rem;
  cursor: pointer;
  z-index: 20;
  padding: 0.25em 0.5em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.prev { 
  left: 0;
  transform: translate(-100%, -50%);
}
.next { 
  right: 0;
  transform: translate(100%, -50%);
 }

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}
/* Mobile */
@media (max-width: 768px) {
  .carousel-slide img {
    height: 300px;
  }
}

/* ===============================
   LINKS
================================ */

a {
  color: inherit;
  text-decoration: none;
}

/* ===============================
   BUTTON RESET
================================ */

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* ===============================
   MAIN LAYOUT WRAPPER
================================ */

main {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* ===============================
   RESPONSIVE TEXT SCALING
================================ */

body {
  font-size: clamp(16px, 1.2vw, 18px);
}

/* ===============================
   SAFE AREA (iOS NOTCH)
================================ */

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
/* Tablet: widths up to 1024px */
@media (max-width: 1024px) {
  .events-conatiner {
    display: block;
  }
   .events-grid {
    grid-template-columns: 1fr;
  }
  .single-event{
    max-width:100%;
  }
 
  .img-recent{
    max-width: 80%;
    transform: translateY(3em);
  }
  .calender-home{
    padding-right: 0;
    padding-left: 0;
    gap: 0;
  }
  .recent-work-image {
    justify-content: none; 
    display: block;
    }
  .about-me-container{
        display: block;
    }
    .paragraph-about, .paragraph{
        padding: 2em;
    }
    .doctor-who{
        display: block;
        padding-left: 0;
    }
    .doctor-who-img{
        padding-right: 50%;
        padding-left: 40%;
        padding-top: 2em;
        box-shadow: none;
    }
    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden; /* prevents horizontal scroll */
        box-sizing: border-box;
    }
    .site-title, .site-label {
        font-size: 2rem;
    }

}

/* Phones / mobile: widths up to 768px */
@media (max-width: 768px) {
  .event-date{
    font-size: 45px;
  }
  .slide{
      padding-top: 2em;
  }
    .carousel-slide:hover img {
    transform: none !important;
  }
  .cv-conatiner{
    padding: 2em;
  }
  
  .zoom-lens {
    display: none !important;
  }
  .site-title{
      font-size: 1.5rem;
  }
  .site-label {
      font-size: 1rem;
      padding-right: 3em;
  }
  .gallery{
    padding: 1em;
    padding-top: 2em;
  
  }
  .gallery-item {
    flex: 1 1 calc(50% - 10px);
  }
  .slideshow-container{
      padding-top: 5em;
  }

  .img-recent{
      padding-left: 1em;
      max-width: 95%;
      transform: translateY(1em);
  }

  .calender-home{
      display: block;
      padding-left: 0;
      padding-right: 0;
  }
  .about-me-container{
      display: block;
  }
  .doctor-who-img {
      border-radius: none;
      box-shadow: none;
      max-width: 100%;
      padding-left: 1em;
      display: block;
  }
  .doctor-who{
      display: block;
      padding-left: 0;

  }
  .about-header{
      padding-bottom: 2em;
  }
  html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      overflow-x: hidden; /* prevents horizontal scroll */
      box-sizing: border-box;
  }
}