@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Barlow+Condensed:wght@100;200;300;500;700&family=Barlow:wght@200;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@900&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Barlow', sans-serif;
  background-color: var(--maincolor);
  margin: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.design-container {
  background: transparent;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.design-left {
  //flex: 1;
}

.design-right {
  position: relative;
  background: transparent;
  flex: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.slide {
  background: transparent;
  font-family: 'Barlow condensed', sans-serif;
  font-weight: 100;
  width: 100%;
  //margin-bottom: 1px;
  cursor: pointer;
  color: var(--maincolor);
  flex: 1;
  position: relative;
  transition: all 500ms ease-in-out;
  overflow: hidden;
  margin: 0px;
}

.slide p {
  display: none;
}

.slide .slide-content, .slide .imageblock {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.slide .imageblock {
  //display: none;
  visibility: hidden;
  align-items: center;
  justify-content: center; /* this should push the content to the right */
  opacity: 0;
}

.slide.active .imageblock {
  //display: flex;
  visibility: visible;
  opacity: 1;
  transition: .25s;
  transition-delay: .5s;
}

.slide .slide-content {
  justify-content: flex-end;
}

.slide .slide-section-right {
  display: flex;
  align-items: center;  /* vertical alignment */
  justify-content: center; /* this should push the content to the right */
  width: 100%; /* take full width of the parent */
  height: 100%; 
  position: absolute;
  top: 0px;
  //padding-left: 2vw;
}

.slide .slide-section-right h3 {
 line-height: 100%;
 text-align: right;
}

.slide:hover h3 {
  //color: var(--maincolor);
  font-size: 30%;
  font-weight: 700;
}

.slide:last-child {
  margin-bottom: 0px;
}

.slide h3 {
  font-weight: 200;
  font-size: 15%;
  text-align: right;
  //padding-right: 20px;
  color: var(--backcolor);
}

.slide .client-info {
  text-align: left;
  font-family: 'Barlow', sans-serif;
  font-weight: 200;
  font-size: 20%;
  height: 0px;
  overflow: hidden;
  transition: .2s;
  opacity: 0;
  width: 100%;
  display: none;
}

.slide.active .client-info {
  height: 100%;
  opacity: 1;
  display: block;
  padding-top: .5vw;
  padding-bottom: .5vw;
  border-top: solid 1px var(--bodycopy);
}

.slide-text strong {
  font-weight: 500;
  margin-top: 10%;
}

.slide-text {
  width: 100%;
  height: 100%;
}

.slide.active {
  width: calc(100% - 10px);
  background-color: var(--backcolor);
  flex: 28;
  cursor: default;
  border-radius: 2.75vw;
  margin: 5px;
}

.active .slide-section-right {
  display: block;
  height: auto;
  //position: absolute;
  //right: 20px;
  top: auto;
  //bottom: 20px;
  //pointer-events: none;
  width: 20%;
  left:0px;
  margin-left: 2vw;
}

.slide.active p {
  display: block;
  font-size: 20%;
  margin-bottom: 1%;
  margin-top: -5%;
}

.slide .client-desc {
  display: none;
}


.slide.active .client-desc {
  display: block;
  font-family: 'barlow', 'sans-serif';
  font-weight: 200;
  font-size: 17%;
  padding-top: .5vw;
  border-top: solid 1px var(--bodycopy);
}

.slide.active h3 {
  font-family: 'Barlow', sans-serif;
  color: var(--highlight);
  font-weight: 700;
  font-size: 40%;
  opacity: 1;
  transition: opacity 0.3s ease-in-out 0.4s;
  margin-bottom: 10px;
  text-align: left;
  padding-right: 0px;
}

.slide.active .slide-text {
  display: flex;
  align-items: center;  /* vertical alignment */
  justify-content: center; /* this should push the content to the right */  height: 100%;
  height: 100%;
  width: 100%;
  right: 20px;
  opacity: 1;
  transition-delay: .5s;
  color: var(--bodycopy);
}

.blacktheme .active.slide {
  background: var(--backcolor);
  margin-bottom: 1px;
  color: var(--backcolor);
}

.blacktheme .slide.active {
  color: var(--maincolor);
}

.blacktheme .slide:last-child {
  margin-bottom: 0px;
}

.slide .brandimg {
  display: flex;              /* Enable flex */
  justify-content: space-between; /* Push boxes to the edges */
  align-items: center;            /* Vertical centering */
  align-items: stretch;
  gap: 5%;
  height: 100%;
  transition: transform 0.5s;
  opacity: 0;
  position: absolute;
  left:25%;
  right: 3%;
  padding: 1% 0 2% 0;
}

.carousel-controls {
  position: absolute;
  bottom: .2vh;
  //right: 20px;
  display: flex;
  align-items: center;
  justify-content: start;
}

.prev::before {
  content: "<";
}

.next::before {
  content: ">";
}

.prev, .next {
  padding-bottom: 0.2vh !important;
  line-height: 0;
  font-family: 'Londrina Solid', sans-serif; 
  font-size: 3vh;
  font-weight: 900;
  color: var(--backcolor);
  width: 3vh;
  height: 3vh;
  cursor: pointer;
  background-color: var(--maincolor);
  border: none;
  border-radius: 50%;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0);
  color: var(--maincolor);
  transition: .25s;
}

.nav-circles {
  display: flex;
  align-items: center;
}


.nav-circles span {
  display: inline-block;
  width: 2vh;
  height: 2vh;
  background: none;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  border: solid 1px var(--maincolor);
}

.nav-circles span:hover {
  background: var(--highlight);
  border: var(--highlight);
  transition: .5s;
}

.nav-circles .active, .nav-circles .active:hover {
  background: var(--maincolor);
}

.brandimg-scroll .scroll {
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  flex-grow: 1;               /* Allow boxes to grow */
  box-shadow: var(--boxshadow);
  border-radius: 20px 0px 0px 20px;
  overflow: hidden;
  //height: auto;
  overflow-y: scroll;
}

.brandimg-scroll .scroll:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

.brand-grid-container:first-child {
  //height: 100%;
  //border-radius: 30px;
}

.brandimg-scroll .scroll img {
  display: block;
  width: 100%;
  height: auto;
}

.context {
  display: grid;
    grid-template-rows: 1fr auto; /* top-content fills available space, bottom-content takes what it needs */
    height: 100%; 
}

.descrip {
  margin-top: 10px;
  text-align: right;
  font-size: 20%;
  position: relative;
  //bottom: 0px;
}

.brandimg.brandimg-hor-scroll {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* Adjust based on your needs or a fixed height value */
  align-items: stretch;
}

.brandimg-scroll .context .scroll-dt, .brandimg-scroll .context .scroll-mo {
  //width: 40vw;
  height: 100%;
}


.brandimg-scroll .scroll-dt {
  //width: 40vw;
  //height: 75%;
}

.brandimg-scroll .scroll-mo {
  //width: auto;
  //height: 100%;
  //margin-left: 3%;
}

.brandimg-scroll .caption-contain {
  display: flex;
  flex-direction: column;
  height:100%;
}

.brand-grid-container img{
  height: calc(100% - 10px) !important;
}

.brandimg-hor-scroll {
  gap: 0% !important;
}

.brandimg-hor-scroll .brand-grid-container {
  cursor: move; /* fallback if grab cursor is unsupported */
  cursor: grab;
  cursor: -moz-grab;
  cursor: -webkit-grab;
  display: flex;
  overflow-x: auto;
  gap: 16px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  //scrollbar-width: 5px;
  flex-grow: 1; /* Makes the image container take up any available vertical space */
  //height: calc(50% - 10px);
}

.brandimg-hor-scroll .brand-grid-container:active {
  cursor: grabbing;
  cursor: -moz-grabbing;
  cursor: -webkit-grabbing;
}

/* For Webkit browsers like Chrome and Safari */
.brand-grid-container::-webkit-scrollbar {
  width: 12px;
}

.brand-grid-container::-webkit-scrollbar-thumb {
  background-color: rebeccapurple;
  border-radius: 6px;
}

.brand-grid-item img {
  flex: 0 0 auto;
  display: block;
  height: 100%;
  object-fit: cover;
  border: solid 1px var(--maincolor)
  margin:3px;
}


.brandimg-scroll .scroll::-webkit-scrollbar {
  width: 5px; /* width of the entire scrollbar */
}

.brandimg-scroll .scroll::-webkit-scrollbar-track {
  background: var(--maincolor); /* color of the tracking area */
}

.blacktheme .brandimg-scroll .scroll::-webkit-scrollbar-track {
  background: var(--maincolor); /* color of the tracking area */
}

.brandimg-scroll .scroll::-webkit-scrollbar-thumb {
  background: var(--highlight); /* color of the scroll thumb */
  border-radius: 0px; /* radius of the scroll thumb */
}

.blacktheme .brandimg-scroll .scroll::-webkit-scrollbar-thumb {
  background: var(--backcolor); /* color of the scroll thumb */
}

.brandimg-scroll .scroll {
  scrollbar-width: thin; /* "thin" or "auto" or "none" */
  scrollbar-color: var(--backcolor) var(--maincolor); /* thumb and track color */
  border: solid 1px transparent;

}

.blacktheme .brandimg-scroll .scroll {
  scrollbar-color: var(--backcolor) var(--maincolor); /* thumb and track color */
  border: solid 1px var(--maincolor);
}

.blacktheme .brandimg img, .blacktheme .brandimg video  {
  filter: grayscale(100%) contrast(120%);
}

.blacktheme .brandimg img:hover, .blacktheme .brandimg video:hover {
  filter: grayscale(0%) contrast(100%);
  transition: 2s;
}

.brand-grid-container::-webkit-scrollbar {
  height: 5px; /* height of the entire horizontal scrollbar */
}

.brand-grid-container::-webkit-scrollbar-track {
  background: transparent; /* color of the tracking area */
}

.blacktheme .brand-grid-container::-webkit-scrollbar-track {
  background: transparent; /* color of the tracking area */
}

.brand-grid-container::-webkit-scrollbar-thumb {
  background: var(--highlight); /* color of the scroll thumb */
  border-radius: 0px; /* radius of the scroll thumb */
}

.blacktheme .brand-grid-container::-webkit-scrollbar-thumb {
  background: var(--maincolor); /* color of the scroll thumb */
}

.brand-grid-container {
  scrollbar-width: thin; /* "thin" or "auto" or "none" */
  scrollbar-color: var(--backcolor) transparent; /* thumb and track color */
}

.blacktheme .brand-grid-container {
  scrollbar-color: var(--backcolor) transparent; /* thumb and track color */
}


.video-container {
  position: relative;
  width: auto;
  max-height: 100%;
}

.video-container video {
  width: auto;
  max-height: 100%;
}
