:root {
    --grid-gap: 100px; /* 🔧 CHANGE THIS VALUE to control spacing */
}


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

body {
  display: flex;
  margin: 0;
    font-family: Arial, sans-serif;
	
  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;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
	margin-top: 100px;
    gap: var(--grid-gap); /* ✅ spacing controlled here */
    padding: var(--grid-gap); /* optional outer spacing */
    box-sizing: border-box;
}

/* Grid item */
.grid-item {
    position: relative;
    overflow: hidden;
	border-radius:  15px;
	
}

.grid-item a {
    display: block;
}

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

/* Caption */
.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    text-align: center;
    padding: 5px;
}


@media (max-width: 1024px) {
    .caption {
        color: yellow;
		font-size: 4px;
    }
}





/* Hover overlay */
.overlay {
    
	
  position: absolute;
  inset: 0;           /* shorthand for top/left/right/bottom */
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
	
	
    background: rgba(0,0,0,0.7);
    color: white;
    
   	
  
    opacity: 0;
    transition: opacity 0.3s ease;
	font-size: 24px; /* 👈 Change this value */
	}
	
	
@media (max-width: 1024px) {
    .overlay {
        color: white;
		font-size: 10px;
    }
}





.grid-item:hover .overlay {
    opacity: 1;
	
}


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

