/* Portfolio section */
#portfolio {
	padding-top: 50px;
	background: #f9f9f9;
	text-align: center;
}

#portfolio .container {
	width: 100%;
	padding: 0;
	margin: 0;
}

#portfolio .col-md-4 {
	padding: 10px;
	margin: 0;
}

#portfolio img {
	width: 100%;
	transition: all 0.4s ease-in-out;
}

/* Filter wrapper */
.filter-wrapper {
	width: 100%;
	margin: -30px 0 24px 0;
	overflow: hidden;
	text-align: center;
}

.filter-wrapper li {
	display: inline-block;
	margin: 4px;
}

.filter-wrapper li a {
	color: #999999;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 8px 17px;
	display: block;
	text-decoration: none;
	transition: all 0.4s ease-in-out;
}

/* Project cards */
.iso-section .col-md-3,
.iso-section .col-sm-4,
.iso-section .col-xs-6 {
	padding: 8px;
	margin: 2px 0;
}

.project-card {
	position: relative;
	display: inline-block;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.project-card img {
	display: block;
	width: 100%;
	height: auto;
}

.project-card .overlay {
	position: absolute;
	inset: 0;
	background: rgba(75, 75, 75, 0.5);
	color: white;
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	margin: 8px;
}

.project-card:hover .overlay {
	opacity: 1;
}

.project-card p {
	font-size: 18px;
}

/* Modal */
.modal-background {
	display: block;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
	z-index: 9999;
	justify-content: center;
	align-items: center;
	transition: opacity 0.3s ease-in-out;
}

.modal-inside {
	background: white;
	padding: 2rem;
	border: 0px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	max-width: 1200px;
	width: 90%;
	text-align: left;
	border-radius: 8px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.modal-inside .close-button {
	position: fixed;
	top: -2px;
	right: 1rem;
	background: transparent;
	color: #696969;
	font-size: 40px;
	font-family: "Atma", system-ui;
	font-weight: 500;
	border: none;
	cursor: pointer;
	transition: 0.2s linear;
}

.modal-inside .close-button:hover {
	color: #cacaca;
	font-weight: 600;
}

.modal-background.show {
	opacity: 1;
	pointer-events: auto;
}

/* Modal text styling */
.modal-inside h1 {
	font-size: 40px;
}

.modal-inside h2 {
	font-size: 30px;
}

.modal-inside p {
	font-size: 17px;
	line-height: 1.3;
}

.modal-inside .pds-tag {
	font-size: 15px !important;
	color: #8a5aa3;
	margin-top: 25px;
	line-height: 0.5;
}

.modal-inside .pds-text {
	font-size: 14px;
	line-height: 1.2;
}

.bottom-space {
	margin-bottom: 50px;
}

.modal-inside .row {
	margin-top: 20px;
}

.my-caption {
  text-align: center;
}

.my-caption figcaption {
  margin-bottom:20px;

}
/* Media containers */
.google-slides {
	position: relative;
	padding-bottom: 60%;
	height: 0;
	overflow: hidden;
	margin-top: 1rem;
}

.google-slides iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.yt-shorts {
	position: relative;
	padding-bottom: 177.78%;
	height: 0;
	overflow: hidden;
}

.yt-shorts iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.img-sm {
	height: 100%;
	width: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 10px;
}

.img-grid .grid-33 {
	width: 33%;
}

.img-grid .grid-25 {
	width: 25%;
}

/* Button */
.btn-cool {
	position: relative;
	display: inline-block;
	padding: 0.6em 1.4em;
	font-size: 1.75rem;
	font-weight: 500;
	color: #fff;
	background: #70438e;
	border: none;
	border-radius: 6px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cool:hover,
.btn-cool:focus {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.12);
	background: #613a7b;
	color: #fff;
}

.btn-cool:active {
	transform: translateY(0);
	box-shadow: 0 3px 6px rgba(0,0,0,0.08);
	background: #4b2b60;
}

/* Bottom close button */
.modal-inside .bottom-close {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.modal-inside .bottom-close-btn {
  background: transparent;
  border: none;
  color: #8a5aa3;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.modal-inside .bottom-close-btn:hover {
  color: #5c3874;
}

/* Filter hover states */
.filter-wrapper li:nth-child(1) a:hover,
.filter-wrapper li:nth-child(1) a:focus,
.filter-wrapper li:nth-child(1) a.selected {
	background-color: #bc9adb;
	color: white;
}

.filter-wrapper li:nth-child(2) a:hover,
.filter-wrapper li:nth-child(2) a:focus,
.filter-wrapper li:nth-child(2) a.selected {
	background-color: #dd668e;
	color: white;
}

.filter-wrapper li:nth-child(3) a:hover,
.filter-wrapper li:nth-child(3) a:focus,
.filter-wrapper li:nth-child(3) a.selected {
	background-color: #8699ee;
	color: white;
}

.filter-wrapper li:nth-child(4) a:hover,
.filter-wrapper li:nth-child(4) a:focus,
.filter-wrapper li:nth-child(4) a.selected {
	background-color: #36c1d3;
	color: white;
}

.filter-wrapper li:nth-child(5) a:hover,
.filter-wrapper li:nth-child(5) a:focus,
.filter-wrapper li:nth-child(5) a.selected {
	background-color: #ffb24c;
	color: white;
}

.filter-wrapper li:nth-child(6) a:hover,
.filter-wrapper li:nth-child(6) a:focus,
.filter-wrapper li:nth-child(6) a.selected {
	background-color: #64b166;
	color: white;
}

/* Isotope box (legacy support) */
.iso-box-section {
	width: 100%;
}

.iso-box-wrapper {
	width: 100%;
	padding: 0;
	clear: both;
	position: relative;
}

.iso-box {
	position: relative;
	min-height: 50px;
	overflow: hidden;
	margin-bottom: 20px;
}

.iso-box > a {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.fluid-img {
	width: 100%;
	display: block;
}

/* Responsive design */
@media (max-width: 992px) {
	.img-grid .grid-33 {
		width: 100% !important;
	}
	.img-grid .grid-25 {
		width: 50%;
	}
}

@media (max-width: 768px) {
	.img-grid .grid-25 {
		width: 100%;
	}
}
