/* ---- History section (About page) ---- */
.sec-history .section-head-center {
    margin-bottom: 26px;
}
.history-desc {
    max-width: 976px;
    margin: 0 auto 120px;
    text-align: center;
}
.sec-history .about-features {
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}
.sec-history .about-feature {
    width: 25%;
}



/* ---- Two-image gallery row (reused across inner pages) ---- */
.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}
.sec-history .about-feature:not(:last-child)
{
 border-right:0;
}
.gallery-item {
    position: relative;
    display: block;
    flex: 1 1 320px;
    overflow: hidden;

    & > a { 
		max-width: 100%;
		width: 100%;
		overflow:hidden;
        position: relative;

		&:after { 
			content: '';
			position: absolute;
			inset: 0;
			z-index: 1;
			background: linear-gradient(116deg, transparent 20%, 
			color-mix(in srgb, 
			color-mix(in srgb, var(--theme) 50%, var(--light-cream)) 40%, transparent) 45%, 
			color-mix(in srgb, 
			color-mix(in srgb, var(--theme) 50%, var(--light-cream)) 55%, transparent) 50%, 
			color-mix(in srgb, 
			color-mix(in srgb, var(--theme) 50%, var(--light-cream)) 40%, transparent) 55%, transparent 80%);
			background-size: 250% 100%;
			background-repeat: no-repeat;
			background-position: right top;
			pointer-events: none;
			transition: background-position 0.9s ease;
		}

		&:hover { 
			&:after { 
				background-position: left top;
    			opacity: 1;
				transition: background-position 0.9s ease;
			}
		}
		
	}
}
.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 750 / 650;
    object-fit: cover;
}
.gallery-item--video::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.gallery-item-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    transition: var(--transition-default);
}
.gallery-item-play::before,
.gallery-item-play::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--white);
    opacity: 0;
    pointer-events: none;
    animation: galleryPlayRipple 2.4s ease-out infinite;
}
.gallery-item-play::after {
    animation-delay: 1.2s;
}
@keyframes galleryPlayRipple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
.gallery-item-play img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}
.gallery-item--video:hover .gallery-item-play {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ---- Mixed gallery row (any number of landscape + vertical images, each sized by its own natural aspect ratio) ---- */
.gallery-row--mixed {
    flex-wrap: wrap;
    align-items: flex-start;
}
.gallery-row--mixed .gallery-item {
    flex: 0 0 auto;
   
}
.gallery-row--mixed .gallery-item img {
    width: auto;
    height: 100%;
    aspect-ratio: auto;
}





/* ---- The Present section (About page) ---- */
.sec-present .ctent-img {
    width: 650px;
}
.sec-present .ctent-block {
    width: calc(100% - 650px);
}

/* ---- About Marcus section (About page) ---- */
.sec-about-marcus .ctent-img {
    width: 650px;
}
.sec-about-marcus .ctent-block {
    width: calc(100% - 650px);
    max-width:880px;
}
.sec-about-marcus .ctent-block p {
    margin-bottom: 20px;
}
.about-quote {
    /* margin-top:130px; */
    margin-top: 93px;
    
    padding: 56px;
}
.about-quote-wrap {
    margin-bottom: 30px;
}
.about-quote p {
    font-family: var(--font-body-family);
    font-style: italic;
    font-weight: var(--font-weight-light);
    font-size: 26px;
    line-height: 36px;
    color: var(--black);
}
.about-quote-wrap p:last-child {
    margin-bottom: 0;
}
.about-quote-author {
    display: block;
    position: relative;
    padding-top: 30px;
    font-family: var(--font-head-family);
    font-weight: var(--font-weight-light);
    font-size: 16px;
    color: var(--brown);
}
.about-quote-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 1px;
    background-color: var(--theme);
}


/******* ----------- media ------------********/

@media (max-width:1599.98px) {
   .gallery-row{
     gap:30px;
   }
   .gallery-row--mixed .gallery-item{
        flex: 1 1 calc(50% - 15px);
        width: calc(50% - 15px);
   }
   .gallery-row--mixed .gallery-item img{
        width:100%;
        aspect-ratio: 750 / 650;
   }
   
}

@media (max-width:1439.98px) {
   
    .history-desc{
       margin: 0 auto 80px; 
    }
    .gallery-row{
      gap:14px;
   }
   .gallery-row--mixed .gallery-item{
            flex: 1 1 calc(50% - 7px);
        width: calc(50% - 7px);
   }
   .gallery-item-play img{
    width:60px;
    height:60px;
   }
   .gallery-item-play{
    width:60px;
    height:60px;
   }
   .sec-about-marcus .ctent-img {
    width:550px;
   }
   .sec-about-marcus .ctent-block {
        width: calc(100% - 550px);
        max-width: 880px;
    }
    .about-quote{
        margin-top:60px;
        padding:30px;
    }
    .about-quote p{
        font-size: 22px;
        line-height: 30px;
    }
    .about-quote-wrap {
        margin-bottom:20px;
    }
    .about-quote-author{
        padding-top:20px;
    }
    .sec-present .ctent-img {
        width:550px;
    }
    .sec-present .ctent-block {
        width: calc(100% - 550px);
    }
}

@media (max-width:1199.98px) {
    
    .history-desc{
       margin: 0 auto 60px; 
    }
    .sec-about-marcus .ctent-img {
        width:450px;
    }
    .sec-about-marcus .ctent-block {
        width: calc(100% - 450px);
        max-width: 880px;
    }
    .about-quote {
        margin-top:40px;
    }
    .sec-present .ctent-img {
        width:450px;
    }
    .sec-present .ctent-block {
        width: calc(100% - 450px);
    }
}

@media (max-width: 991.98px) {
    .sec-history .about-features {
        flex-wrap: wrap;
        gap:10px;
    }
    .sec-history .about-feature {
        width:calc(50% - 5px);
        padding:20px;
        gap:14px;
    }

    .sec-history .about-feature:not(:last-child){
        border-right:1px solid rgba(164, 130, 80, 0.2);
    }
    .sec-about-marcus .ctent-img {
        width:100%;
    }
    .sec-about-marcus .ctent-block {
        width: 100%;
        margin-bottom:20px;
    }

     .sec-present .ctent-img {
        width:100%;
    }
    .sec-present .ctent-block {
        width:100%;
    }
}

@media (max-width:767.98px) {
    
    
}

@media (max-width: 575.98px) {
    .sec-history .about-feature {
        padding:14px;
        justify-content: flex-start;
        text-align: left;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .sec-history .about-feature-text{
        max-width:max-content;
    }
     .history-desc{
       margin: 0 auto 40px; 
    }
    .gallery-item-play img{
        width:40px;
        height:40px;
    }
    .gallery-item-play{
        width:40px;
        height:40px;
    }
    .about-quote {
        margin-top:20px;
        padding:24px;
    }
        .about-quote p {
        font-size: 20px;
        line-height: 26px;
    }
    .about-quote-wrap {
        margin-bottom:15px;
    }
    .about-quote-author {
        padding-top:15px;
    }
    .gallery-row {
        gap:8px;
    }
    .gallery-row--mixed .gallery-item {
        flex: 1 1 calc(50% - 4px);
        width: calc(50% - 4px);
    }
    .gallery-row--mixed .gallery-item img{
       width: 100%;
        aspect-ratio: 300 / 400; 
    }
}