.first-section.life-at-mit .content{
	flex-direction: row;
	align-items: end;
	justify-content: space-between;
}
.first-section.life-at-mit .content h1{
	width: 100%;
}

.cta-btn {
	width: fit-content;
	padding: calc(0.375rem + 0.2vw);
	background: var(--accent-color);
	color: var(--text-secondary);
	border-radius: 0.375rem;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-family: var(--font-heading);
	font-size: calc(0.9rem + 0.4vw);
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	letter-spacing: -0.1125rem;
}

.cta-btn:hover {
	background: var(--primary-color);
}

.cta-btn .icon-wrapper {
	width: 1.875rem;
	height: 1.875rem;
	border-radius: 0.25rem;
	background: var(--text-secondary);
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.content .arrow-container {
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
	transform: rotate(45deg) translateY(25%);
}

.life-at-mit .icon-wrapper svg {
	width: 1.25rem;
	height: 1.1875rem;
	flex-shrink: 0;
	stroke: var(--primary-color);
}

.cta-btn:hover .arrow-container {
	transform: rotate(45deg) translateY(-25%);
}

.cta-btn:hover svg{
	stroke: var(--primary-color);
}




/* card and text section start */
/* card and text section start */

.text-card-section h2{
	    font-family: var(--font-heading);
    font-size: calc(1.5rem + 0.1vw);
    font-weight: 500;
/*     text-wrap: nowrap; */
    line-height: normal;
	margin-bottom: 1rem;
    letter-spacing: -0.075rem;
    color: #540411;
}


.text-card-section .orange-color-heading h2{
    color: #F1591E;
}

.text-card-section p{
	color: #1a1a1a;
    font-family: var(--font-body);
    font-size: calc(1.025rem + 0.1vw);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}


.text-card-section .gallery-container{
	position: relative;
	height: 30vw;
	display: block;
	margin-top: 0;
}

.text-card-section .gallery-container div {
	height: 100%
}

.text-card-section .gallery-container .photo-card{
	position: relative;
}

.text-card-section .gallery-container .photo-card img{
	aspect-ratio: 1 /1.1;
}

.text-card-section .gallery-container > div{
	position: absolute;
	width: 45%;
	height: auto;
	right: auto;
	left : 0;
	bottom: auto;
	top:0;	
	transition : transform 0.5s ease-in-out;
}

/* photos that are together */

.text-card-section .together-photos.gallery-container > div:nth-child(1) {
	right: auto;
	left : 4vw;
	bottom: auto;
	top:4vw;	
	transform: rotate(-8deg) !important;
}

.text-card-section .together-photos.gallery-container > div:nth-child(2){
	right: auto;
	left : 11.5vw;
	bottom: auto;
	top:2vw;	
	transform: rotate(4deg) !important;
}
.text-card-section .together-photos.gallery-container > div:nth-child(3){
	right: auto;
	left : 22vw;
	bottom: auto;
	top: 7vw;
	transform: rotate(-5deg) !important;
}


/* photos that are not together */
.text-card-section .spread-photos.gallery-container > div:nth-child(1){
	right: auto;
	left : 0vw;
	bottom: auto;
	top: 6vw;	
	transform: rotate(-12deg) !important;
}
.text-card-section .spread-photos.gallery-container > div:nth-child(2){
	right: auto;
	left : 14vw;
	bottom: auto;
	top: -3vw;	
	transform: rotate(8deg) !important;
}
.text-card-section .spread-photos.gallery-container > div:nth-child(3){
	right: 0;
	left : auto;
	bottom: auto;
	top: 11vw;
	transform: rotate(5deg) !important;
}




.text-card-section .gallery-container > div:nth-child(1):hover, .text-card-section .gallery-container > div:nth-child(2):hover, .text-card-section .gallery-container > div:nth-child(3):hover{
	transform: rotate(0) !important;
	z-index: 10000;
}

/* card and text section end */
/* card and text section end */


/* massonry layout start */
/* massonry layout start */

.masonry-layout h1{
	color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-style: normal;
    font-weight: 500;
    line-height: 3.75rem;
    letter-spacing: -0.24rem;
}
.masonry-layout h1 em{
	color: var(--accent-color);
    font-style: normal;
}

.sow-masonry-grid-image{
	border-radius: 0.7rem;
}
/* massonry layout end */
/* massonry layout end */

/* campus companion section start */
/* campus companion section start */
.companions-section h1{
color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-style: normal;
    font-weight: 500;
    line-height: 3.75rem;
    letter-spacing: -0.24rem;
	margin-bottom : 1rem;
}
.companions-section p{
    color: #1a1a1a;
    font-family: var(--font-body);
    font-size: calc(1.025rem + 0.1vw);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}
.companions-section .gallery-container{
	grid-template-columns: repeat(4, 1fr);
	gap: 10vw 0vw;
}

.companions-section .gallery-container > div:nth-child(odd){

}
.companions-section .gallery-container > div:nth-child(even){
	margin-top: -12vw;
}

.companions-section .gallery-container .photo-card img{
	aspect-ratio: 1 /1.1;
}


/* campus companios section end */
/* campus companios section end */


@media (max-width: 1024px){
	

}


@media (max-width: 780px){
	.first-section.life-at-mit .content{
		flex-direction: column;
		justify-content: end;
		align-items: start;
	}
	
.text-card-section .gallery-container{
	height: 55vw;
	margin-top: 2rem;
}

	.text-card-section .together-photos.gallery-container > div:nth-child(2), .text-card-section .spread-photos.gallery-container > div:nth-child(2){
		left: 20vw;
	}
	.text-card-section .together-photos.gallery-container > div:nth-child(3), .text-card-section .spread-photos.gallery-container > div:nth-child(3){
		left: 45vw;
	}
	
	.reverse-row-mobile{
		flex-direction: column-reverse !important;
	}

.text-card-section .gallery-container > div{
	width: 45%;
}
	
	.companions-section .gallery-container{
		display: grid;
		grid-template-columns: repeat(2, 1fr);

	}
	.companions-section .gallery-container > div:nth-child(even){
		margin-top: 0 ;
	}

}