/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

   body {
    background-color: white;
    color: black;
    font-family: Verdana;
  }
  
  a:link {
    color: black;
    background-color: transparent;
    text-decoration: none;
  }
  
  a:visited {
    color: black;
    background-color: transparent;
    text-decoration: none;
  }
  
  a:hover {
    color: gray;
    background-color: transparent;
    text-decoration: none;
  }
  
  a:active {
    color: red;
    background-color: transparent;
    text-decoration: none;
  }

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 300;
}

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tag-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #333;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tag-button:hover {
    background: #333;
    color: white;
}

.tag-button.active {
    background: #333;
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.02);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-tags {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 15px 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-tags {
    opacity: 1;
}

.photo-tag {
    display: inline-block;
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 4px 8px;
    margin: 2px;
    font-size: 11px;
    border-radius: 2px;
}

/* Photo Viewer Modal */
.photo-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-viewer.active {
    display: flex;
    opacity: 1;
}

.viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.viewer-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.viewer-info {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    max-width: 600px;
}

.viewer-description {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.viewer-tags {
    margin-top: 10px;
}

.viewer-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 10px;
    margin: 3px;
    font-size: 12px;
    border-radius: 3px;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

.viewer-close:hover {
    transform: rotate(90deg);
    border-color: white;
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-nav:hover {
    opacity: 0.7;
    border-color: white;
}

.viewer-prev {
    left: 20px;
}

.viewer-next {
    right: 20px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .viewer-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .viewer-prev {
        left: 10px;
    }

    .viewer-next {
        right: 10px;
    }
}