body {
	background: #050C35;
	font-family: Montserrat, sans-serif;
  	font-size: 16px;
  	color: #FFF;
}
#wrapper {
	width: 1600px;
	height: 100%;
	margin: 25px auto;
	text-align: center;
	position: relative;
}

#wrapper img {
	width: 1600px;
}

#wrapper .calItem {
	width: 318px;
	height: 293px;
	/*background: pink;*/
	/*opacity: 50%;*/
	position: absolute;
    cursor: pointer;
    padding: 0px 10px;
}
#wrapper .calItem.visible {
	background: #050C35;
}

#wrapper .calItem.visible:nth-child(3n+1) {
    background-color: #ede6dc; 
}

#wrapper .calItem.visible:nth-child(3n+2) {
    background-color: #226055;
}

#wrapper .calItem.visible:nth-child(3n) {
    background-color: #c31919;
}

#wrapper .calItem img {
	width: 100%;
	margin-top: 51px;
    border-radius: 8px;
}

/* Popup*/
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; 
    max-height: 90%;
    aspect-ratio: 16 / 9;
    background-color: #050C35;
    border: 1px solid #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    padding: 20px;
    border-radius: 8px;
    color: #FFF;
    text-align: center;
}
.popup.toearly {
    background-color: #c31919;
}
.popup h2 {
    margin-top: 0;
}
.popup iframe {
	margin: 15px auto;
    width: 70%; 
    height: 70%;
    border: none;
}
.popup a,
.popup a:hover,
.popup a:active,
.popup a:visited {
    color: #FFF;
    font-weight: bold;
}
.popup a:hover {
    color: #c31919;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
    display: none;
}
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 25px;
    background: none;
    border: none;
    color: #FFF;
    font-weight: bold;
}