:root {
	--bg: #e4e4e4;
	--header-bg: var(--bg);
	--text-light: #ffffff;
	--btn-bg: #555;
	--btn-active-bg: #777;
	--card-bg: #ffffff;
	--shadow: 0 2px 6px rgba(0,0,0,0.1);
	--radius: 8px;
	--padding: 20px;
}

html {
	font-size: 16px;
	overflow-y: scroll;
    scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
}

body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: var(--padding);
	background: var(--bg);
}

html, body {
    height: 100%;
}

header {
	background: var(--header-bg);
	color: var(--text-light);
	padding: var(--padding);
	text-align: center;
	border-radius: var(--radius);
}

/* The header IS the image */
.header-banner {
    height: 150px; /* adjust height to what looks best */
    background-image: url('../logo_wide.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;           /* needed for button positioning */
    display: flex;
    justify-content: center;      /* center horizontally */
    align-items: flex-end;        /* stick nav to the bottom */
    padding-bottom: 20px;         /* space between buttons and bottom edge */
}

/* Horizontal button row */
.header-nav {
    display: flex;
    gap: 15px;
	transform: translateY(38px); /* Move down visually */
}



nav {
	margin-top: 15px;
	display: flex;
	justify-content: center;
	gap: 20px;
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    background-color: #222;
	background-size: contain; /* fits fully inside the div without cropping */
}

.image {
	background:#ddd; 
	height:150px; 
	border-radius:10px; 
	overflow: hidden
	
}

.card {
	background: var(--card-bg);
	border-radius: 12px;
	box-shadow: var(--shadow);
	padding: 10px;
	text-align: center;
	height: 260px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card p {
    transition: transform 0.3s ease;
}

.card:hover {
	transform: scale(1.05); /* slightly zoom in */
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* add shadow on hover */
}

.card:hover p {
    transform: translateY(5px); /* lift the caption slightly */
}

.tab-container {
    position: relative;
    transition: height 0.35s ease;
}

.tab-btn {
	overflow: hidden;
    background: var(--btn-bg);
    color: var(--text-light);
    padding: 10px 20px;
    border: 1px solid #444;
    border-bottom: none; /* important: makes the active tab merge */
    border-radius: 8px 8px 0 0; /* folder tab shape */
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
    position: relative; 
    z-index: 2; /* keeps tabs above the box */
}

.tab-btn::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transition: left 0.4s ease;
}

.tab-btn.active::before {
    left: 0;
}

.tab-btn.active {
    background: var(--card-bg);
    color: #000;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.35s ease;
    transform: translateY(2px); /* tab settles into the box */
    box-shadow: none;
}

.tab-btn.active::after {
    opacity: 1;
    transition: opacity 0.35s ease;
}

.tab-btn:hover {
	background: var(--btn-active-bg);
	transform: translateY(-2px);
}

.tab-btn.active:hover {
    transform: none;
    background: var(--card-bg);  /* or var(--btn-active-bg) if you prefer */
    cursor: default;            /* optional, but feels better */
	transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.35s ease;
    transform: translateY(2px);
}

.tab-btn.active::after {
    transition: opacity 0.35s ease;
    opacity: 1;
}

.tab-page {
	margin-top: 20px;
	position: relative;
    top: -4px;
    z-index: 1;
	background: var(--card-bg);
	padding: var(--padding);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	
	/* Smooth clip-path transition */
	opacity: 0;
	animation: fadeIn 0.5s ease forwards;
	clip-path: inset(0 0 100% 0);
	transition: opacity 0.4s ease, transform 0.35s ease, clip-path 0.5s ease;
	overflow: hidden;
	display: none;
	transform: translateY(-2px);
}

.tab-page.active {
	display: block;
	opacity: 1;
	transform: translateY(0);
	clip-path: inset(0 0 0 0);
}

.gallery-wrapper {
    max-height: 40vw;      /* scrolling height */
    overflow-y: auto;       /* enable scrolling */
    padding-right: 10px;    
    position: relative;     /* necessary for shadows to escape child grid */
}

/* --- Sub-tab container --- */
#gallery-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
    transform: translateY(5px);
}

/* --- Sub-tab buttons --- */
.gallery-subtab-btn {
    padding: 8px 18px;
    background: var(--btn-bg);
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    cursor: pointer;
    color: var(--text-light);
    
    /* smooth fade + slide */
    transition: 
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
        
    opacity: 0.85;
}

/* Hover (optional, still subtle) */
.gallery-subtab-btn:hover {
    opacity: 1;
    box-shadow: var(--shadow);
}

/* --- Active state --- */
.gallery-subtab-btn.active {
    background: var(--btn-active-bg);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

#image-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding-top: 20px;   /* extra space above first row */
    padding-bottom: 40px; /* extra space below last row */
	padding-right: 15px;
    max-height: auto;
    overflow-y: hidden;
}

.lightbox {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 1000; /* on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* semi-transparent background */
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-caption {
    color: white;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: zoom-in; /* will change to zoom-out when zoomed */
}

.lightbox-img.zoomed {
    cursor: zoom-out;
    transform: scale(2); /* adjustable zoom level */
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

footer {
	text-align: center;
	margin-top: 30px;
	color: #555;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}