* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 200ms;
}
:root {
    --background-primary: #f1f1f1;
    --b7gallery-blue: #006edf;
    --text-color-gray: #5f5f5f;
    --border-color: #b7b7b7;
    --footer-border-color: #d9d9d9;
    --white-color: #ffffff;
}
body {
    font-family: "Inter", Arial, Helvetica, sans-serif;
    max-width: 100vw;
    overflow-x: hidden;
}

header {
    background-color: var(--background-primary);
}

.wrapper {
    max-width: 1280px;
    margin: auto;
    padding: 1rem 5%; 
}

a.logo {
  display: block;
  text-decoration: none;
  color: var(--b7gallery-blue);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -1.4px;
}
.logo span {
    color: var(--text-color-gray);
    font-weight: 400;
}

.hero-area {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between
}
.hero-area-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
}

.hero-area-left h1 {
    margin-top: 0; /* Adjust as needed */
    color: var(--text-color-gray);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -2.4px;
    text-align: center; /* Center the text */
}

.hero-area-left form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 384px;
    width: 100%; /* Ensure form takes full width */
}

.hero-area-left form input[type="text"] {
    height: 64px;
    font-size: 1rem;
    padding: 0 1.5rem;
    color: var(--text-color-gray);
    border: 2px solid var(--border-color);
    border-radius: .5rem;
    outline-color: var(--b7gallery-blue);
    background-color: transparent;
}

.hero-area-left form input[type=submit] {
    height: 64px;
    font-size: 1rem;
    border: 0;
    border-radius: 0.5rem;    
    margin-bottom: 1.5rem;
    outline: 0;
    background-color: var(--b7gallery-blue);
    color: var(--white-color);
    cursor: pointer;
}

.hero-area-left form .input-file-container {
    display: flex;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
    justify-content: space-between;
    align-items: center;
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    height: 64px;
}
.hero-area-right {
    flex: 1;
    max-width: 60%;
}
.hero-area-right img {

    object-fit: contain;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem,1fr));
    gap: 1.2rem;
}

.gallery-container .image  {
    position: relative;
    margin: 5px;
}

.gallery-container .image:hover {
    transform: scale(1.02);
}

.gallery-container .image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
 }
 

.gallery-container .image:hover > .overlay {

    display: block;
}

.gallery-container .image .overlay {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    border-radius: 0;
    background: 
        linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%),
        linear-gradient(0deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
}

.gallery-container .overlay  h2 {
    color: white;
    padding: 1.5rem;
}

.gallery-container .overlay .btn-delete  {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 1.5rem;
}

 .gallery-container .overlay .btn-delete :hover {
    transform: scale(1.02);
}

.gallery-container .overlay .btn-delete img {
    width: 3rem;
    height: 3rem;
}


footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--footer-border-color);
}

@media (max-width: 980px) {
    .hero-area-right {
        max-width: 50%;
    }
}

@media (max-width: 768px) {

    .logo, .hero-area-left h1 {
        text-align: center;
    }
    .hero-area-left form {
        margin: 0 auto;
    }
    .hero-area {
        flex-direction: column-reverse;
    }

    .hero-area-right {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 100%;
    }
    .hero-area-right img {
        max-width: 100%;
    }
}

 

