.card {
height: fit-content;
max-height: 75%;
max-width: 1000px;
border-radius: 10px;
overflow: hidden;
position: relative;
}

.page {
display: none;
flex-direction: column;
justify-content: start;
align-items: center;
height: 100%;
width: 100%;
padding: 20px;
overflow-y: auto;
/* gap: 12px; */
}

.page:not([data-pg=home]) {
background: rgba(255, 255, 255, 0.2);
/* background: rgba(0, 0, 0, 0.2); */
}

.page:is([data-pg=home]) .pg-sec {
width: unset;
}

.page:not([data-pg=home]) .pg-sec {
padding: 10px 0;
}

.arrows {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
padding: 0 24px;
z-index: 100;
}

.arrows button {
width: 48px;
height: 48px;
background-color: rgba(255,255,255,0.1);
border-radius: 50%;
display: flex;
border: none;
justify-content: center;
align-items: center;
/* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
cursor: pointer;
font-size: 2rem;
color: rgba(0,0,0,0.4);
}

.arrows button:hover,
.arrows button:focus,
.arrows button:active {
background-color: rgba(255,255,255,0.2);
color: rgba(0,0,0,0.6);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.page.active {
display: flex;
}

.page section {
width: 100%;
}

.page section h2,
.page section h3 {
font-size: 2rem;
font-weight: bold;
color: rgb(30 30 30, 72%);;
align-self: start;
}

.page section h4 {
font-size: 1.2rem;
font-weight: bold;
align-self: start;
}

.page section h5 {
font-size: 1rem;
color: rgba(50, 50, 50, 0.8);
font-weight: bold;
align-self: start;
}

.tabs {
display: flex;
justify-content: start;
align-items: center;
gap: 24px;
width: 100%;
padding: 10px;
overflow-x: auto;
min-height: 60px;
position: relative;
}

.tab {
padding: 12px;
border: none;
border-radius: 20px 20px 0 0;
background-color: rgba(255, 255, 255, 0.6);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
text-transform: uppercase;
}

.tab.active {
background-color: rgba(250, 250, 250, 1);
box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.tab:hover {
background-color: rgba(250, 250, 250, 1);
box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.panels {
display: flex;
justify-content: center;
align-items: center;
gap: 24px;
width: 100%;
flex: 1 1 auto;
height: 100%;
position: relative;
}

.panel {
width: 100%;
height: 100%;
display: none;
justify-content: start;
align-items: center;
gap: 8px;
overflow-y: auto;
padding: 12px;
}

.panel:has(.panel-item.full) {
flex-direction: column;
}

.pg-sec:has(.subitems) {
overflow-y: auto;
height: 100%;
padding: 5px 10px !important;
display: flex;
flex-direction: column;
gap: 12px;
}

.pg-sec:has(.pg-sec-item) {
display: flex;
flex-direction: row;
gap: 12px;
justify-content: start;
align-items: start;
flex-wrap: wrap;
}

.pg-sec-item {
flex: 1 1 auto;
}

.subitems {
display: flex;
justify-content: start;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}

.panel.active {
display: flex;
}

.panel-item {
flex: 1 1 20%;
display: flex;
justify-content: start;
align-items: center;
gap: 12px;
background: #ffffffc4;;
border-radius: 12px;
padding: 12px;
border: none;
width: 100%;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.panel-item.full {
width: 100%;
}

.pg-sec:has(.vert) {
display: flex;
flex-direction: row;
justify-content: start;
align-items: start;
gap: 8px;
overflow-x: hidden;
overflow-y: auto;
}

.tabs.vert {
flex-direction: column;
flex: 1 1 auto;
height: 100%;
width: 30%;
padding: 0;
gap: 12px;
padding: 12px;
overflow-y: auto;
overflow-x: hidden;
justify-content: start;
align-items: start;
min-width: 200px;
}

.tabs.vert .tab {
border-radius: 20px;
width: 100%;
min-width: 150px;
}

.panels.vert {
flex-direction: column;
flex: 1 1 auto;
height: 100%;
width: 70%;
padding: 0;
gap: 12px;
justify-content: start;
align-items: start;
overflow-y: auto;
}

.panels.vert .panel {
flex-direction: column;
height: 100%;
width: 100%;
padding: 12px;
}

.web-preview {
width: 100%;
max-height: 200px;
border: none;
border-radius: 10px;
overflow: hidden;
position: relative;
}

.video-icon {
width: 100%;
height: 100%;
display: none;
justify-content: center;
align-items: center;
position: absolute;
top: 0;
left: 0;
background: rgba(0, 0, 0, 0.4);
color: white;
font-size: 2rem;
}

.panel-item.pi-img {
width: 100%;
flex-direction: column;
justify-content: start;
align-items: start;
gap: 8px;
padding: 12px;
min-width: 400px;
}

a {
text-decoration: none;
text-transform: uppercase;
font-weight: 600;
}

.panel-item:has(.pill) {
flex-direction: column;
align-items: start;
}

.pill {
padding: 8px 16px;
border-radius: 20px;
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: all 0.3s ease;
}

.media-wrapper {
position: relative;
display: flex;
max-height: 200px;
border-radius: 10px;
overflow: hidden;
flex: 1 1 30%;
}

.media-wrapper img,
.media-wrapper video {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
}

.media-wrapper::before {
content: attr(data-label);
position: absolute;
top: 10px;
left: 10px;
margin: auto;
padding: 5px 10px;
border: none;
background: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 4px 0 rgba(0,0,0,0.2);
border-radius: 20px;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
z-index: 10;
font-weight: bold;
color: white;
pointer-events: none;
opacity: 1;
}

.media-wrapper:hover::before {
background: rgba(0, 0, 0, 0.4);
}

.panel-gallery {
padding: 12px;
overflow: hidden;
width: 100%;
display: flex;
flex-direction: row;
gap: 12px;
justify-content: start;
align-items: center;
flex-wrap: wrap;
}

.panel-gallery img,
.panel-gallery video {
flex: 1 1 30%;
min-height: 200px;
}

.card:has(.page.active:not([data-pg=home])) .page {
background: rgba(55,55,55,0.2);
}

.info-icon {
position: absolute;
border: none;
padding: 10px;
border-radius: 20px;
background: rgba(255,255,255,0.2);
box-shadow: 0 4px 4px 0 rgba(255,255,255, 0.3);
color: #fff;
font-weight: 600;
margin: auto;
left: 0;
right: 0;
bottom: 10px;
width: fit-content;
cursor: pointer;
transition: all 1s ease-in-out;
}

.info-icon:hover {
background: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
.card {
width: 90%;
max-height: 90%;
max-width: 90%;
}

.card:not(.page.active:not([data-pg=home])) {
    height: 90%;
}

.page {
    padding: 20px;
}

.pg-sec:has(.vert) {
    flex-direction: column;
}

.tabs {
    gap: 12px;
}

.tabs.vert {
    width: 100%;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    padding: 10px 0;
    overflow-x: auto;
    gap: 0;
    height: fit-content;
}

.tabs.vert .tab {
    border-radius: 20px 20px 0 0;
    width: fit-content;
}

.panels.vert {
    width: 100%;
    flex-direction: row;
    padding: 0;
    gap: 12px;
}

.panels.vert .panel {
    width: 100%;
    flex-direction: column;
}

.panel-item {
    flex: 1 1 100%;
    gap: 8px;
}

.panel-item.full {
    width: 100%;
}

.page:not([data-pg=home]) .pg-sec {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 12px;
}

.page:not([data-pg=home]) .pg-sec:has(.pg-sec-item) {
    flex-direction: row;
}

.panel-item.pi-img {
    min-width: 100%;
}

.web-preview {
    max-width: 100%;
    max-height: 200px;
}

.media-wrapper {
    width: 100%;
    max-height: 200px;
    flex: 1 1 100%;
}

.info-icon {
    bottom:16px;
}

.panel-gallery img,
.panel-gallery video {
    flex: 1 1 100%;
    max-width: 100%;
    max-height: 200px;
}

.arrows {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: auto;
}

/* landscape */
@media (max-width: 1024px) and (min-width: 768px) {
.card {
width: 95%;
max-height: 95%;
max-width: 95%;
}

.arrows {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: auto;
}

.page[data-pg=home] {
    height: fit-content;
    overflow-y: auto;
}

.letter {
    font-size: 6rem;
}
}