/* Wedding Website Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 30px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #8b7355;
    cursor: pointer;
    padding: 15px;
    width: auto;
}

.menu-toggle:hover {
    background: none;
    color: #b8956a;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #8b7355;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
    font-size: 1.1em;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #8b7355;
    color: white;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

h1 {
    font-size: 3em;
    color: #8b7355;
    margin-bottom: 10px;
    font-weight: normal;
}

.ampersand {
    font-size: 1.2em;
    color: #b8956a;
}

.tagline {
    font-size: 1.2em;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* Sections */
.section {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h2 {
    color: #8b7355;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: normal;
}

h3 {
    color: #8b7355;
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: normal;
}

p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Details Grid */
.details {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.detail-item {
    text-align: center;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.detail-item h3 {
    color: #8b7355;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: normal;
}

.detail-item p {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 0;
}

/* Contact Info */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background: #fafafa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.contact-card h3 {
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 8px;
    font-size: 1em;
}

.contact-card a {
    color: #8b7355;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #8b7355;
    font-weight: bold;
    font-size: 1.1em;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Georgia', serif;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #b8956a;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    width: 100%;
    padding: 15px;
    background: #8b7355;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    font-family: 'Georgia', serif;
    transition: background 0.3s;
}

button:hover {
    background: #b8956a;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.show {
    display: block;
}

/* Schedule */
.schedule-item {
    background: #fafafa;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #8b7355;
}

.schedule-time {
    color: #8b7355;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.schedule-event {
    font-size: 1.1em;
    color: #333;
}

/* Info Box */
.info-box {
    background: #f0ebe5;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #b8956a;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    aspect-ratio: 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    color: #999;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

.gallery-caption {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

/* relevant styles */
.img__wrap {
  position: relative;
  height: 330px;
  width: 357px;
}

.img__description {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  background: rgba(154, 100, 29, 0.72);
  color: #fff;
  visibility: hidden;
  opacity: 0;

align-items: center;
    text-align: center;

  /* transition effect. not necessary */
  transition: opacity .2s, visibility .2s;
}

.img__wrap:hover .img__description {
  visibility: visible;
  opacity: 1;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        border-radius: 0;
    }

    h1 {
        font-size: 2em;
    }

    .section {
        padding: 25px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}