
body {
	--color-text: #5d5d5d;
	--color-bg: #A39571;
	--color-link: #838288;
	--color-link-hover: #A39571;
	--color-number: #000;
	--color-title: #A39571;
	--color-caption: #000;
	--color-content: #000;
	--color-content-bg: var(--color-bg);
	--color-reveal-bg: var(--color-bg);
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: transat-text, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}


/* Page Loader */
.js .loading::before {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	pointer-events: none;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

ic_main {
	position: relative;
	min-height: 100vh;
}

.ic_frame {
	padding: 3rem 5vw 0;
	text-align: center;
	position: relative;
	z-index: 100;
}

.ic_frame__title {
	font-size: 1rem;
	margin: 0 0 1rem;
}

.ic_frame__links a {
	margin: 0 0.5rem;
}

.ic_frame__mode {
	margin: 1rem auto;
	display: flex;
	justify-content: center;
}

.ic_frame__mode-item {
	position: relative;
	width: 20px;
	height: 20px;
	margin: 0 0.25rem;
	pointer-events: auto;
	border-radius: 50%;
	background: #A39571;
	overflow: hidden;
	border: 1px solid var(--color-text);
}

.ic_frame__mode-item--dark {
	background: #000;
}

.ic_frame__mode-label,
.ic_frame__mode-input {
	font-size: 0;
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	-moz-appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.content {
	position: relative;
}

.ic_content__item {
	position: absolute;
	width: 100%;
	left: 0;
	top: 0;
	color: var(--color-content);
	background: var(--color-content-bg);
}

.js .ic_content__item {
	opacity: 0;
	pointer-events: none;
}

.js .ic_content__item--current {
	opacity: 1;
	pointer-events: auto;
	top: 5.1rem;         /* inside img top gap*/
}

.ic_content__item-header {
	padding: 2rem 8rem 2rem 1rem;   /*inside title of person position*/
	position: relative;
}

.ic_content__item-header-meta::before {
	content: '——';
	margin: 0 0.5rem 0 0;
	letter-spacing: 0;
}

.ic_content__item-header-title {
	font-family: ivymode, sans-serif;
	font-weight: 500;
	font-size: 4rem;           /*inside Friend Name size*/
	margin: 0 4px 0 4px;
	color: var(--color-content-title);
}

.ic_content__item-header-meta {
	text-indent: 0.25rem;
	display: block;
	color: var(--color-content-meta);
}

.dark-mode .ic_content__item-header-meta {
	mix-blend-mode: difference;
}


.ic_content__item-copy {
	padding-left: 1rem;     /*inside content left position*/
    padding-right: 1rem;    /*inside content left position*/
	font-family: linotype-didot, serif;
}

.revealer {
	position: fixed;
	width: 100vw;
	height: 100vh;
	top: 0;
	left: 0;
	transform: rotate(-8deg);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.revealer__inner {
	background-color: var(--color-reveal-bg);
	width: 200%;
	height: 200%;
	position: relative;
	flex: none;
}

.ic_grid {
	position: absolute;
	display: grid;
	height: 440px;
	width: 100%;
	left: 0;
	margin-top: 5rem;
	grid-template-columns: 30% 30% 30%;
	grid-column-gap: 4%;      /*pictures gaps */    
	grid-template-areas: 'griditem-left griditem-center griditem-right';
}

.ic_grid--slideshow,
.ic_grid--interaction {
	left: 0%;              /* show position*/
	width: 110%;            /* show width*/
	pointer-events: none;
}

.ic_grid--slideshow {
	top: 8rem;               /* show top gap*/
	transform: rotate(-6deg);
}

.ic_grid--titles {
	align-items: center;
	text-align: center;	
	cursor: default;
}

.ic_titles-wrap {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 1065;
	pointer-events: none;
	transform: rotate(12deg);
}

.ic_grid__item {
	display: flex;
	justify-content: center;
	position: relative;
	pointer-events: none;
	opacity: 0;
	grid-area: griditem-center;
}

.ic_grid__item--slide {
	flex-direction: column;
	width: 100%;	
}

.ic_grid__item--title {
	font-size: 10vw;
	margin: 0;
	font-family: ivymode, sans-serif;
	font-weight: 600;
	color: var(--color-title);
}

.ic_grid__item--title span {
	display: inline-block;
}

.ic_grid__item--center,
.ic_grid__item--left,
.ic_grid__item--right {
	opacity: 1;
	cursor: pointer;
}

.ic_grid__item--left {
	grid-area: griditem-left;
}

.ic_grid__item--center {
	grid-area: griditem-center;
}

.ic_grid__item--right {
	grid-area: griditem-right;
}

.ic_grid__item--cursor {
	pointer-events: auto;
}

.content-open .ic_grid__item--cursor {
	display: none;
}

.number {
	font-size: 2rem;
	-webkit-text-stroke: 1.5px var(--color-number);
    text-stroke: 1.5px var(--color-number);
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    color: transparent;	
    line-height: 1;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.img-wrap {
	width: 100%;
	overflow: hidden;
	position: relative;
	height: 100%;
}

.img-wrap--content {
	height: 300px;      /*inside page img size*/
}

.img {
	width: calc(100% + 0px);
	height: 100%;
	left: 0px;
	top: 0;
	background-size: cover;
	background-position: 50% 50%;
	position: absolute;
	pointer-events: none;
}

.img--content {
	background-position: 50% 30%;
}

.caption {
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	font-size: 0.75rem;
	font-weight: 400;
	margin: 0.75rem 0 0 0;
	color: var(--color-caption);
}

.caption::before {
	content: '---------';
	margin: 0 0.5rem 0 0;
	letter-spacing: -0.15rem;
}

.img-wrap,
.img--content,
.caption,
.number,
.ic_grid__item--title,
.ic_grid__item--title span,
.revealer__inner,
.ic_content__item-header-title {
	will-change: transform;
}

.ic_grid__item--cursor.ic_grid__item--left::after,
.ic_grid__item--cursor.ic_grid__item--right::after,
/* 5. MOBILE CLOSE "X" */
.img-wrap--content::after {
    top: 0.5rem;
    right: 0.5rem;
    left: auto;
    transform: scale(2.0);
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 52 52'%3E%3Cpath d='M 16 16 L 36 36 M 36 16 L 16 36' stroke='%231978ed' stroke-width='12' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

.ic_grid__item--cursor.ic_grid__item--left::after {
	top: 80%;
}

.ic_grid__item--cursor.ic_grid__item--right::after {
	top: -30%;
}

.ic_grid__item--cursor.ic_grid__item--left::after {
	content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='61px' height='44px' viewBox='0 0 61 44' style='enable-background:new 0 0 61 44;' xml:space='preserve'%3E %3Cpath d='M.613 21.671L21.584.7l5.642 5.642-11.74 11.74H60.45v7.978H15.487l11.74 11.739-5.643 5.642L.613 22.469a.57.57 0 0 1 0-.798z'/%3E %3C/svg%3E");
}

.ic_grid__item--cursor.ic_grid__item--right::after {
	content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' width='61px' height='44px' viewBox='0 0 61 44' style='enable-background:new 0 0 61 44;' xml:space='preserve'%3E %3Cpath d='M60.287 21.671L39.316.7l-5.642 5.642 11.74 11.74H.45v7.978h44.963l-11.74 11.739 5.643 5.642 20.971-20.972a.57.57 0 0 0 0-.798z'/%3E %3C/svg%3E");
}

/* 5. MOBILE CLOSE "X" */
.img-wrap--content::after {
    top: 0.5rem;
    right: 0.5rem;
    left: auto;
    transform: scale(0.5);
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='-5 -5 60 65'%3E%3Cpath d='M 16 16 L 36 36 M 36 16 L 16 36' stroke='%231978ed' stroke-width='12' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}


	.frame {
		position: fixed;
		bottom: 0;
		right: 0;
		padding: 1rem;
		transition: 0.3s opacity;
	}
	.content-open + .frame {
		opacity: 0;
		pointer-events: none;
	}
	.ic_frame__title-wrap {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}
	.ic_frame__title {
		margin: 10px;
	}
	.ic_frame__links {
		margin: 0 1.5rem;
	}
	.ic_frame__mode {
		margin: 0;
	}
	.frame a {
		pointer-events: auto;
	}
	.grid {
		height: 100vh;
		grid-template-columns: repeat(3, calc((100% - 36vw) / 3));
		grid-column-gap: 18vw;
	}
	.ic_grid--slideshow {
		top: 0;
	}
	.grid--interaction {
		grid-template-columns: repeat(3, calc(100% / 3));
		grid-column-gap: 0;
	}
	.number {
		font-size: 4.25vw;
	}
	.img-wrap {
		height: 35vw;
	}
	.img-wrap--content {
		height: 100%;
		grid-area: 1 / 2 / 2 / 3;
	}
	.content {
		top: 0;
		position: absolute;
		height: 100vh;
		width: 100%;
	}
	.ic_content__item {
		height: 100vh;
		display: grid;
		align-items: center;
		grid-template-columns: 30% 40% 30%;
		grid-column-gap: 0;
	}
	.js .ic_content__item {
		height: 100%;
	}
	.js .ic_content__item--current {
		top: 0;
	}
	.img-wrap--content {
		height: 100%;
	}
	.ic_content__item-header {
		justify-self: center;
		grid-area: 1 / 1 / 2 / 3;
		pointer-events: none;
	}
	.ic_content__item-header-title {
		font-size: 8vw;
	}
	.ic_content__item-copy {
        font-size: 1.5vw;
        font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
		max-width: 400px;
		justify-self: start;
		text-align:justify;
	}
	.ic_grid__item--cursor.ic_grid__item--left::after,
	.ic_grid__item--cursor.ic_grid__item--right::after,
	.img-wrap--content::after {
		display: none;
	}
/* 1. LEFT ARROW - Thick, rounded stem and head */
/* 1. LEFT CHEVRON - Minimalist rounded angle */
.ic_grid__item--cursor.ic_grid__item--left {
		cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='-5 -5 60 65'%3E%3Cpath d='M 32 10 L 16 26 L 32 42' stroke='%23331a8f' stroke-width='20' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") 40 40, sw-resize;
	}

	/* 2. CENTER PLUS - Thick, rounded plus sign */
	.ic_grid__item--cursor.ic_grid__item--center {
		cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='-15 -15 82 80'%3E%3Cpath d='M 26 12 L 26 40 M 12 26 L 40 26' stroke='%23728f1a' stroke-width='10' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") 40 40, crosshair;
	}

.ic_grid__item--cursor.ic_grid__item--right {
		cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='-5 -5 60 65'%3E%3Cpath d='M 20 10 L 36 26 L 20 42' stroke='%23331a8f' stroke-width='20' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") 40 40, ne-resize;
	}

	/* 4. DESKTOP CLOSE "X" - Thick, rounded diagonal lines */
.img-wrap--content {
		cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='-5 -5 60 65'%3E%3Cpath d='M 16 16 L 36 36 M 36 16 L 16 36' stroke='%23728f1a' stroke-width='10' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") 40 40, pointer;
	}

/* ===================================================
   MOBILE "DESKTOP-LIKE" OPENED STATE FIX
   =================================================== */
@media screen and (max-width: 480px) {
    /* 1. Remove the annoying 5.1rem gap pulling the page down */
    .js .ic_content__item--current {
        top: 0 !important; 
    }

    /* 2. Mimic the Desktop grid, but stacked vertically */
    .ic_content__item {
        height: 100vh !important;
        display: grid !important;
        grid-template-rows: 50% 50% !important; /* Top half Image, Bottom half Text */
        grid-template-columns: 100% !important;
        align-items: start !important;
    }

    /* 3. Force the Image to fill the entire top half of the screen */
    .img-wrap--content {
        grid-area: 1 / 1 / 2 / 2 !important;
        height: 100% !important;
        width: 100% !important;
    }

    /* 4. OVERLAP the Header/Title directly over the Image (Just like Desktop!) */
    .ic_content__item-header {
        grid-area: 1 / 1 / 2 / 2 !important;
        align-self: end !important; /* Sit at the bottom edge of the image */
        justify-self: start !important;
        padding: 1.5rem !important;
        z-index: 10 !important;
        pointer-events: none;
    }

    /* 5. Fluid Title typography to pop against the image background */
    .ic_content__item-header-title {
        font-size: clamp(2.5rem, 12vw, 4.5rem) !important; 
        color: #fff !important; 
        text-shadow: 0px 4px 15px rgba(0,0,0,0.6) !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    .ic_content__item-header-meta {
        font-size: clamp(0.9rem, 4vw, 1.3rem) !important;
        color: #f1f1f1 !important;
        text-shadow: 0px 2px 8px rgba(0,0,0,0.8) !important;
    }

    /* 6. Place the reading text cleanly in the bottom half with fluid font sizing */
    .ic_content__item-copy {
        grid-area: 2 / 1 / 3 / 2 !important;
        padding: 2rem 1.5rem !important;
        font-size: clamp(1.1rem, 5vw, 1.5rem) !important; 
        overflow-y: auto !important; /* Let text scroll if it gets too long */
    }

    /* 7. Keep the original slider background math happy */
    .ic_grid {
        height: 60vh !important;
        margin-top: 20vh !important;
        grid-template-columns: 30% 40% 30% !important; 
    }
    .img-wrap {
        height: 40vh !important; /* Taller background pictures */
    }
    .number {
        font-size: clamp(1.5rem, 8vw, 2.5rem) !important;
    }
}

