/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* ----------------------------------------------------------------
	GLOBAL OVERRIDES
-----------------------------------------------------------------*/

h1, h2, h3, h4, h5, h6 {
	font-family: Georgia, 'Poppins', sans-serif;
	font-weight: 400;
}

#content p {
	color: #666;
	font-size: 19px;
	line-height: 30px;
	font-weight: 300;
	/*
	letter-spacing: .5px;
	margin-bottom: 2rem;
	font-size: 22px;
	line-height: 34px;
	*/
}



.breadcrumb a:hover,
.portfolio-desc h3 a:hover,
a {
	color: #007185;
}

/* ----------------------------------------------------------------
	MAIN NAVIGATION
-----------------------------------------------------------------*/

.menu-container #tab-shop {
	padding: 0 30px;
	background-color: #F9F9F9;
	border-bottom: 1px solid #EEE;
}

.menu-container #tab-shop .nav-link {
	color: #333;
	padding: 18px 25px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 1px;
}

.menu-container #tab-shop .nav-link.active {
	border-bottom: 2px solid #1ABC9C;
	color: #1ABC9C;
}

.menu-item:hover > .menu-link,
.menu-item.current > .menu-link {
	color: #007185;
}

.sub-menu-container,
.mega-menu-content {
	border-top: 2px solid #007185;	
}

/* ----------------------------------------------------------------
	SUB NAVIGATION
-----------------------------------------------------------------*/

#page-menu {
	height: 44px;
}

/* ----------------------------------------------------------------
	RESPONSIVE TWEAKS
-----------------------------------------------------------------*/

@media (max-width: 991.98px) {
	.menu-container #tab-shop .nav-link { padding: 15px; }
}

@media (min-width: 992px) {
	.page-menu-sub-menu {
		background-color: #007185;
	}
}

@media (max-width: 991.98px) {
	body #header .standard-logo { display: none; }
	body #header .retina-logo { display: none; }
	body #header .mobile-logo { display: flex; }
	.main-image-container { width: 100%; }
}

@media (min-width: 992px) {
	#header .mobile-logo { display: none; }
	.main-image-container { padding-right: 30px; }
}

@media (min-width: 992px) {
	.full-header #logo,
	.full-header .primary-menu .menu-container {
		border-right: 0;
	}
}

@media (min-width: 992px) {
	.sub-menu-container .menu-item:hover > .menu-link {
		color: #007185;
	}
}

/* ----------------------------------------------------------------
	THEME
-----------------------------------------------------------------*/

#page-menu-wrap {
	background-color: #007185;
}

.dark #footer,
#footer.dark {
	background-color: #007185;
}

/* ----------------------------------------------------------------
	AUTHOR BOX
-----------------------------------------------------------------*/

#content .author-box {
	background: none;
	border: 1px solid #e8e8e8;
    background: 0 0;
    padding: 20px 20px 0 20px;
	margin-top: 20px;
	margin-bottom: 15px;
}

#content .author-box h2 {
	text-align: center;
}

#content .author-box .author-image {
	margin: 0 auto;
	width: 100%;
    text-align: center;
	margin-bottom: 20px;
	height: 112px;
}

#content .author-box .author-image img {
	width: 80px;
	height: auto;
}

#content .author-box .author-description {
	text-align: left;
	font-size: 16px;
	text-transform: initial;
	line-height: 24px;
	color: #161616;
	font-weight: 300;
}

.author #author-text a {
	text-decoration: none !important;	
}

/* ----------------------------------------------------------------
	MAIN IMAGE CONTAINER
-----------------------------------------------------------------*/

#content .main-image-container {
	display: block;
	float: left;
	max-width: 100%;
}

#content .main-image-container .main-image {
	display: block;
	max-width: 100%;
}

#content .main-image-container .main-image-link {
	display: block;
    text-align: center;
    margin-top: 20px;
    background-color: #ea8d32;
    padding: 10px 10px;
    font-size: 1.3em;
    color: white;
    text-transform: uppercase;
	line-height: 24px;
	border-bottom: 5px solid #ff525e;
	text-decoration: none !important;
}

#content .main-image-container .main-image-link b {
	font-size: 12px;
}

#content .main-image-container .main-image-statement {
	font-size: 14px;
    line-height: 18px;
    color: #666;
	margin: 15px 0;
	border: 1px solid #ea8d32;
	padding: 10px;
	display: block;
}

@media (min-width: 992px) {
	#content .main-image-container .main-image img,
	#content .main-image-container .main-image-statement,
	#content .main-image-container .main-image-link {
		max-width: 400px;
	}
	.menu-item > .menu-link > div {
		min-width: 82px;
	}
}

@media (max-width: 991.98px) {
	#content .main-image-container .main-image img,
	#content .main-image-container .main-image-statement,
	#content .main-image-container .main-image-link {
		max-width: 100%;
	}
}

@media (max-width: 767.98px) {
	.content-wrap {
		padding: 20px 0;
	}
}

#footer-languages {
	margin-top: 10px;
}
#footer-languages a {
	margin-right: 20px;
}

/* ----------------------------------------------------------------
	PORTFOLIO AND GRID FILTER
-----------------------------------------------------------------*/

.grid-filter li.activeFilter a {
    background-color: #007185;
}

.grid-filter li a:hover {
    color: #007185;
}

.grid-filter li.activeFilter a:hover {
    color: #fff;
}

.grid-filter {
    margin-bottom: 1rem;
}

.portfolio-desc h3 a {
    color: #007185;
    font-size: 1rem;
}

.portfolio.g-0 .portfolio-desc {
    padding-left: 5px;
    padding-right: 5px;
}

.portfolio-desc {
    padding: 5px 5px;
}

@media (min-width: 992px) {
	#portfolio {
		/* max-height: 140px; NO IMAGES */
		max-height: 402px; /* desktop two image rows */
	}
}

.postcontent li {
    list-style-position: inside;
}

/* ----------------------------------------------------------------
	ARTWORK LISTS
-----------------------------------------------------------------*/

.postcontent .row .thumbnail h5 {
    font-size: 1.3rem;	
}

.postcontent a {
	text-decoration: underline !important;
}

/* ----------------------------------------------------------------
	MENU LINK UI FIX
-----------------------------------------------------------------*/

/* MV CSS */

@media only screen and (min-width: 1200px) {

	.device-xl .postcontent {
		max-width: calc(100% - 340px) !important;
	}

	.device-xl .sidebar {
		min-width: 340px !important;
	}

}

/* END OF CSS */

.eMELof {
	z-index: 50 !important;
}

/* ----------------------------------------------------------------
	Artist Lifespan Gantt Chart
-----------------------------------------------------------------*/

.gantt-container {
  width: 1060px;
  padding: 20px;
  font-family: Merriweather;
}

/* GRID LAYOUT (desktop) */
.gantt-container .gantt-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  margin-bottom: 12px;
}

.gantt-container .header {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.gantt-container .artist-col-header {
  font-size: 28px;
  padding-left: 15px;
}

.gantt-container .timeline-header {
  display: grid;
  grid-template-columns: 
    100px 100px 100px 100px 100px 100px 100px 100px; /* 7 intervals from 1250–1600 */
}

.gantt-container .year {
  border-bottom: 2px solid #DDD;
  padding-bottom: 2px;
}

.gantt-container .row {
  height: 48px;
  border-bottom: 1px solid #DDD;
}

.gantt-container .artist-col {
  font-size: 20px;
  padding-left: 15px;
  color: #333;
}

.gantt-container .timeline-cell {
  position: relative;
  height: 100%;
  min-height: 40px;
}

.gantt-container .bar {
  position: absolute;
  height: 20px;
  top: 12px;
  border-radius: 10px;
  opacity: 0.9;
}

/* Rothko Palette */
.gantt-container .green { background: #7cb342; }
.gantt-container .blue { background: #5dade2; }
.gantt-container .red { background: red; }
.gantt-container .orange { background: #e67e22; }
.gantt-container .peach { background: #f2b29b; }
.gantt-container .yellow { background: #f1c40f; }
.gantt-container .brown { background: #a0522d; }
.gantt-container .pink { background: #e57373; }
.gantt-container .purple { background: purple; }
.gantt-container .lilac { background: #c9a8e2; }
.gantt-container .turquoise { background: turquoise; }

/* COLLAPSIBLE SECTION */
.gantt-container .extra-artists { display: none; }

.gantt-container #toggle-artists {
  margin-top: 20px;
  padding: 10px 16px;
  font-size: 16px;
  background: #444;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.gantt-container #toggle-artists:hover { background: #000; }

@media (max-width: 768px) {

  /* Collapse grid into vertical stack */
  .gantt-container .gantt-grid {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  /* Hide full year row — too cluttered on mobile */
  .gantt-container .timeline-header {
    display: none;
  }

  /* Artist text above bar */
  .gantt-container .artist-col {
    font-size: 15px;
    padding-bottom: 4px;
  }

  /* Bars stretch full width, but still use timeline scaling */
  .gantt-container .timeline-cell {
    width: 100%;
    height: 30px;
    margin-top: 4px;
    overflow: hidden;
    position: relative;
  }

  .gantt-container .bar {
    height: 16px;
    top: 7px;
  }

  /* Reduce pixel scaling for mobile’s narrow width 
     (from 2px per year to 0.8px per year) */
  .gantt-container .bar {
    transform: scaleX(0.4); /* visually compress width */
    transform-origin: left;
  }

  /* Optional: smaller button */
  .gantt-container #toggle-artists {
    width: 100%;
    font-size: 15px;
  }
}

/* Even narrower screens (iPhone SE etc.) */
@media (max-width: 420px) {
  .gantt-container .artist-col { font-size: 14px; }
  .gantt-container .bar { height: 14px; }
}

:root {
    --navy: #071739;   /* you already have this */
  --rowtone: var(--navy);
}

.gantt-container .gantt-grid.row:nth-child(odd) {
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--rowtone) 0%, white),
    color-mix(in srgb, var(--rowtone) 5%, white)
  );
}

.gantt-container .gantt-grid.row:nth-child(even) {
 background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--rowtone) 0%, white),
    color-mix(in srgb, var(--rowtone) 5%, white)
  );
}

/* ----------------------------------------------------------------
	Artist Timeline
-----------------------------------------------------------------*/

.timeline-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.timeline-container .timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.timeline-container .timeline-item {
  width: 15%;
  position: relative;
}

.timeline-container .year {
  font-size: 2em;
  font-weight: bold;
  color: white;
  padding: 8px 0;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
}

/* Description box styling */
.timeline-container .content {
  padding: 15px;
  border-radius: 8px;
  font-size: 0.95em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: relative;
}

.timeline-container .content h3 {
	color: #000;
	font-size: 1.3em;
}

#content .timeline-container .content p {
	color: #000;
	font-size: 1.1em;
	line-height: 1.4em;
}

.timeline-container .content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 3px;
  height: 20px;
  background-color: currentColor;
  transform: translateX(-50%);
}

/* Colors */
.timeline-container .orange .year,
.timeline-container .orange .content { background-color: #e67e22; }

.timeline-container .yellow .year,
.timeline-container .yellow .content { background-color: #f1c40f; }

.timeline-container .green .year,
.timeline-container .green .content { background-color: #7cb342; }

.timeline-container .blue .year,
.timeline-container .blue .content { background-color: #5dade2; }

.timeline-container .pink .year,
.timeline-container .pink .content { background-color: #e57373; }

.timeline-container .brown .year,
.timeline-container .brown .content { background-color: #a0522d; }

.timeline-container .lightblue .year,
.timeline-container .lightblue .content { background-color: #4fa3d1; }

/* Match connector color to box */
.timeline-container .orange .content::before { background-color: #e67e22; }
.timeline-container .yellow .content::before { background-color: #f1c40f; }
.timeline-container .green .content::before { background-color: #7cb342; }
.timeline-container .blue .content::before { background-color: #5dade2; }
.timeline-container .pink .content::before { background-color: #e57373; }
.timeline-container .brown .content::before { background-color: #a0522d; }
.timeline-container .lightblue .content::before { background-color: #4fa3d1; }

/* Responsive layout */
@media (max-width: 900px) {
  .timeline-container .timeline {
    flex-direction: column;
    align-items: center;
  }

  .timeline-container .timeline-item {
    width: 80%;
    margin-bottom: 40px;
  }

  .timeline-container .content::before {
    top: -10px;
  }
}

/* ----------------------------------------------------------------
	Artist Quiz
-----------------------------------------------------------------*/

.quiz-wrapper {
  max-width: 780px;
  margin: 40px auto;
  padding: 20px;
  font-family: "Merriweather", sans-serif;
}

.quiz-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 25px;
}

.progress-container {
  width: 100%;
  height: 12px;
  background: #e3e3e3;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 25px;
}

.progress-bar {
  width: 0%;
  height: 12px;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8);
  transition: width 0.6s ease;
}

.quiz-card {
  padding: 18px 22px;
  margin: 20px 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid #d8d8d8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
  opacity: 0;
}

.quiz-card.active {
  display: block;
  opacity: 1;
}

.q-text {
  font-weight: 600;
  margin-bottom: 14px;
}

.q-option {
  display: block;
  padding: 6px 10px;
  cursor: pointer;
}

.quiz-result {
  display: none;
  margin-top: 30px;
  padding: 20px;
  border-left: 5px solid #38bdf8;
  background: #f0f9ff;
  border-radius: 6px;
}

/* ----------------------------------------------------------------
	Artist Comparison
-----------------------------------------------------------------*/

.comparison-chart .artist-thumb {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
        margin: 0 auto 12px;
    }

/* ----------------------------------------------------------------
	Image Comparison Slider
-----------------------------------------------------------------*/

.image-comparison-slider img {
  vertical-align: bottom;
  max-width: 100%;
  height: auto;
}

.image-comparison-slider .block--comparison {
  /* hide shadow */
  overflow: hidden;
  width: 600px;
}

.image-comparison-slider .block--comparison .block__image {
  --range: 50%;
  /* to position elements above each other */
  display: grid;
}

/* position 2 images and range slider above each other*/
.image-comparison-slider .block--comparison .block__img {
  grid-column: -1 / 1;
  grid-row: -1 / 1;
  overflow: hidden;
}

/* move div to right*/
.image-comparison-slider .block__img--last {
  transform: translateX(calc(var(--range) - 100%));
  box-shadow: 0 0 10px rgba(256, 256, 256, .9);
  /* border-right: 4px solid white;
  This border causes slight image mis-alignment */
  &::before,
  &::after {
    content: '';
    position: absolute;
    right: -2px;
    width: 4px;
    height: calc(50% - 25px);
    background: white;
    z-index: 3;
  }
  &::after { top: calc(50% + 25px)}
}

/* compensation right movement*/
.image-comparison-slider .block__img--last img {
  transform: translateX( calc( 100% - var(--range) ) );
}

/* Range Slider */
.image-comparison-slider .block__slide {
  /* scale range slider to size of image container */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* hide range slider */
  opacity: 0;
}


/*********************
  OPTIONAL Custom Styling
*********************/
.image-comparison-slider .block--comparison {
  position: relative;
  
  /* container width and height */
  width: 100%;
  min-height: 100vh;
}

.image-comparison-slider .block--comparison .block__img {
  /* just to fit to container */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-comparison-slider .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.image-comparison-slider input[type=range]{
	-webkit-appearance:none;
	-moz-appearance:none;
	position: absolute;
	top: 50%; left: -25px;
  transform: translateY(-50%);
	background-color: transparent;
	width: calc(100% + 50px); 
  z-index: 2;
  
  &:focus,
  &:active {
    border: none;
    outline: none;
  }
}
.image-comparison-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid white;
  box-shadow: 0 0 8px 1px rgba(0,0,0,.3);
}
.image-comparison-slider input[type=range]::-moz-range-track {
	-moz-appearance:none;
	height: 15px;
	width: 100%;
	background-color: transparent; 
	position: relative;
	outline: none;  
}


.image-comparison-slider #handle {
  position: absolute;
  height: 50px;
  width: 50px;
  top: 50%;
  left: calc(var(--range));
  transform: translateY(-50%) translateX(-50%);
  z-index: 1;
  
  &::before,
  &::after {
    content: '';
    width: 0;
    height: 0;
    border: 6px inset transparent;
    position: absolute;
    top: 50%;
    margin-top: -6px;
  }
  &::before {
    border-right: 6px solid white;
    left: 50%;
    margin-left: -17px;
  }
  &::after {
    border-left: 6px solid white;
    right: 50%;
    margin-right: -17px;
  }
}

/* Temporary New Author Box Styling */
#content .author-box-optimised .author-image {
  margin: 0 10px 10px 0;
  width: auto;
  text-align: center;
  margin-bottom: 20px;
  height: auto;
}
#content .author-box-optimised {
  margin-top: 0;
}
#content .author-box-optimised .author-image img {
    width: 50px;
}
.author-box-optimised.read-more-wrap .read-more-trigger {
  color: #007185;
  bottom: 0;
}
#content .author-box-optimised .author-description {
    font-size: 16px;
}
/* End of Temporary New Author Box Styling */

/* Non-Quote Highlight Boxes */
h1 > span:not(.nocolor):not(.badge),
h2 > span:not(.nocolor):not(.badge),
h3 > span:not(.nocolor):not(.badge),
h4 > span:not(.nocolor):not(.badge),
h5 > span:not(.nocolor):not(.badge),
h6 > span:not(.nocolor):not(.badge) {
  color: #007185;
}