

html, body {
  height: 100%;
  margin: 0;
}

body {
   font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* pushes footer down */
}



/* Title Bar */
.title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: black;
    color: white;
    padding: 40px 100px;
	
	
 
   position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box; /* ✅ important */

    z-index: 1000; 
}

.title-text {
    font-size: clamp(24px, 5vw, 50px);
    font-weight: bold;
	
	position: relative;
}

/* Menu */
.menu {
    display: flex;
    gap: 100px;
}

.menu a {
    color: white;
    
	text-decoration: underline;
    font-weight: bold;
}
.menu a:hover {
  color: grey;
  background-color: black;
}

.page-title {
  text-align: center;
  margin-top: 150px;
  margin-bottom: 50px;
}

.intro-text {
  text-align: justify;
  max-width: 1500px;
  margin: 0 auto 70px auto;/* top right bottom left*/
  font-size: 16px;
  color: #555;
}


/* Navigation arrows */
.nav {
    position: fixed;
    top: 0;
    bottom: 0;                 /* ✅ full height */
    width: 80px;               /* ✅ clickable edge strip */

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 50px;
    color: white;
    background: rgba(0,0,0,0.2);

    cursor: pointer;
    user-select: none;
    z-index: 2000;
}

.nav {
    opacity: 0.3;
    transition: opacity 0.3s, background 0.3s;
}

.nav:hover {
    opacity: 1;
    background: rgba(0,0,0,0.4);
}


.prev {
    left: 10px;                   /* ✅ indent left edge */
}

.next {
    right: 10px;                  /* ✅ indent right edge */
}


/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 60px;
	margin-left: 100px;
	margin-right: 100px;
}

.card {
   
	position: relative;
    aspect-ratio: 4/3;   /* ✅ forces all cards to same shape */
    overflow: hidden;      /* ✅ hides cropped parts */
    border-radius: 5px;

}

/* Thumbnail images */
.card img {
   
	width: 100%;
    height: 100%;          /* ✅ fill container */
    object-fit: cover;     /* ✅ crop portrait images */
    object-position: center;
    display: block;
    cursor: pointer;

}

/* Embedded caption overlay */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
	
   
    left: 0;
    right: 0;
 
    font-size: clamp(1px, 1vw, 14px);

	line-height: 1.2;
	border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 1024px) {
    .overlay {
        color: white;
		font-size: 3px;
    }
}


/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: black;
    justify-content: center;
    align-items: center;
}

/* Container for image + overlay */

.lightbox-content {
    position: relative;
    display: inline-flex;       /*  ✅ KEY FIX */
    justify-content: center;
    align-items: center;

    border-radius: 0px;
    overflow: hidden;
}

/* Full image */
.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 0px;
	border: 10px solid white; 
    display: block;
	
}

/* ✅ Embedded caption */

.lightbox-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;              /* ✅ full width */
    
    background: white;        /* white box */
    color: black;             /* black text */
    
    padding: 12px;
    text-align: center;
    font-size: 18px;

    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;

    box-sizing: border-box;   /* ensures padding stays inside width */
}


.lightbox img {
    width: auto;
    height: 95vh;   /* 95% of viewport height */
    max-width: 100%;
    border-radius: 0px;
}

.lightbox-caption {
    color: white;
    margin-top: 10px;
    font-size: 10px;
	
}

.footer {
    background: black;        /* ✅ black box */
    color: white;             /* ✅ white text */
    text-align: center;
    padding: 15px 10px;
    margin-top: 30px;
    font-size: 14px;
}