/* Wedding Website Styles - v2 */

/* Password Screen */
#password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #5c5c4a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#password-screen.hidden {
    display: none;
}

.password-container {
    text-align: center;
    padding: 40px;
    max-width: 400px;
    width: 90%;
}

.password-title {
    font-family: 'Crimson Text', serif;
    font-size: 3rem;
    color: #f5f0e6;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.password-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: #f5f0e6;
    opacity: 0.7;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.password-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(245, 240, 230, 0.1);
    border: 1px solid rgba(245, 240, 230, 0.3);
    border-radius: 8px;
    color: #f5f0e6;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    -webkit-transition: border-color 0.3s ease;
    transition: border-color 0.3s ease;
}

.password-input:focus {
    border-color: rgba(245, 240, 230, 0.6);
}

.password-input::placeholder {
    color: rgba(245, 240, 230, 0.4);
}

.password-btn {
    width: 100%;
    padding: 14px 40px;
    margin-top: 15px;
    background: #f5f0e6;
    color: #5c5c4a;
    border: none;
    border-radius: 8px;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.password-btn:hover {
    background: #e8e0d0;
}

.password-error {
    color: #e8a0a0;
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    margin-top: 15px;
    min-height: 1.2em;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    color: #f5f0e6;
    background-color: #5c5c4a;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: "Crimson Text", serif;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(92, 92, 74, 0.98);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: "Crimson Text", serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #f5f0e6;
    text-decoration: none;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

ul.nav-menu-rsvp li a {
    background: #f5f0e6;
    padding: 10px 25px;
    transition: all 0.3s ease;
    border-radius: 8px;
    color: #5c5c4a;
}

.nav-glass {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu a {
    text-decoration: none;
    color: #f5f0e6;
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 1px;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 1;
}

/* Hero Section */

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    min-height: calc(100vh - 84px);
    padding: 40px 20px;
    padding-top: 12vh;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}

.hero-content > div {
    z-index: 20;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
}

.hero-content .bottle {
    height: auto;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    object-fit: contain;
    flex-shrink: 1;
}

.hero-title {
    position: relative;
    display: inline-block;
}

.title-deco {
    display: inline-block;
    vertical-align: middle;
    opacity: 0.7;
}


.hero-subtitle {
    font-size: 2.4rem;
    letter-spacing: 5.5px;
    text-transform: uppercase;
    color: #f5f0e6;
    margin-bottom: 20px;
    font-weight: 400;
    word-wrap: break-word;
}

.hero-title {
    font-size: 5.7rem;
    color: #f5f0e6;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.1;
    white-space: nowrap;
}

.hero-party-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 5.5rem;
    opacity: 0.9;
    font-weight: 600;
    -webkit-transform: rotate(-7deg);
    transform: rotate(-7deg);
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 140px;
    left: 0;
}

.hero-date {
    font-size: 1.3rem;
    color: #f5f0e6;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0.9;
}

/* Section Styles */
.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #f5f0e6;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: #f5f0e6;
    margin: 20px auto 0;
    opacity: 0.5;
}

/* Engagement Party Section */
.engagement-section {
    padding: 100px 0;
    background-color: #5c5c4a;
    position: relative;
}

.engagement-content {
    max-width: 900px;
    margin: 0 auto;
}

.party-info h3 {
    font-size: 1.6rem;
    text-align: center;
    color: #f5f0e6;
    margin-bottom: 20px;
    font-style: italic;
    font-weight: 400;
}

.party-description {
    text-align: center;
    font-size: 1.05rem;
    color: #f5f0e6;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.9;
    opacity: 0.9;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: rgba(245, 240, 230, 0.08);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    -webkit-transition: transform 0.3s ease, background 0.3s ease;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(245, 240, 230, 0.15);
}

.info-card:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    background: rgba(245, 240, 230, 0.12);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 0.9rem;
    color: #f5f0e6;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.info-card p {
    color: #f5f0e6;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* Location Details Section */
.location-section {
    padding: 100px 0;
    background-color: #4a4a3a;
    position: relative;
}

.location-content {
    max-width: 800px;
    margin: 0 auto;
}

.location-card {
    text-align: center;
    margin-bottom: 50px;
}

.location-icon {
    margin-bottom: 20px;
}

.location-card h3 {
    font-family: "Crimson Text", serif;
    font-size: 1.8rem;
    color: #f5f0e6;
    margin-bottom: 10px;
    font-weight: 400;
}

.location-card p {
    color: #f5f0e6;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 20px;
}

.location-link {
    display: inline-block;
    color: #f5f0e6;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 10px 25px;
    border: 1px solid rgba(245, 240, 230, 0.4);
    border-radius: 6px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.location-link:hover {
    background: rgba(245, 240, 230, 0.1);
    border-color: rgba(245, 240, 230, 0.6);
}

.details-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.detail-card {
    background: rgba(245, 240, 230, 0.08);
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(245, 240, 230, 0.15);
}

.detail-icon {
    margin-bottom: 15px;
}

.detail-card h4 {
    font-size: 0.9rem;
    color: #f5f0e6;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.detail-card p {
    color: #f5f0e6;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

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

/* RSVP Section */
.rsvp-section {
    padding: 100px 0;
    background-color: #5c5c4a;
    position: relative;
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: #f5f0e6;
    margin-top: -30px;
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.85;
}

.contact-message {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95rem;
    color: #f5f0e6;
    opacity: 0.8;
}

.contact-message a {
    color: #f5f0e6;
    text-decoration: underline;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.contact-message a:hover {
    opacity: 0.7;
}

.rsvp-form {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(245, 240, 230, 0.06);
    padding: 50px 40px;
    border-radius: 16px;
    border: 1px solid rgba(245, 240, 230, 0.15);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f5f0e6;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(245, 240, 230, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Crimson Text", serif;
    -webkit-transition: border-color 0.3s ease, background 0.3s ease;
    transition: border-color 0.3s ease, background 0.3s ease;
    background: rgba(245, 240, 230, 0.08);
    color: #f5f0e6;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: rgba(245, 240, 230, 0.6);
    background: rgba(245, 240, 230, 0.12);
}

.form-group input[type="text"]::placeholder {
    color: rgba(245, 240, 230, 0.4);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 1px solid rgba(245, 240, 230, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(245, 240, 230, 0.08);
    color: #f5f0e6;
}

.radio-label:hover {
    border-color: rgba(245, 240, 230, 0.5);
    background: rgba(245, 240, 230, 0.12);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(245, 240, 230, 0.5);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #f5f0e6;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #f5f0e6;
    border-radius: 50%;
}

.radio-label input[type="radio"]:checked ~ span:last-child {
    color: #f5f0e6;
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 40px;
    background: #f5f0e6;
    color: #5c5c4a;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Crimson Text", serif;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-btn:hover {
    background: #fff;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.submit-btn:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.submit-btn:disabled {
    background: rgba(245, 240, 230, 0.3);
    color: rgba(92, 92, 74, 0.5);
    cursor: not-allowed;
    -webkit-transform: none;
    transform: none;
}

/* Form Message */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(245, 240, 230, 0.15);
    color: #f5f0e6;
    border: 1px solid rgba(245, 240, 230, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(255, 100, 100, 0.15);
    color: #ffb0b0;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

/* Section Decorations */
.section-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.section-deco {
    position: absolute;
    opacity: 0.15;
}

.section-deco-left {
    left: 3%;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 40px;
    height: auto;
}

.section-deco-right {
    right: 3%;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 35px;
    height: auto;
}

@media (max-width: 768px) {
    .section-deco {
        opacity: 0.1;
    }
    .section-deco-left {
        width: 25px;
        left: 1%;
    }
    .section-deco-right {
        width: 22px;
        right: 1%;
    }
}

/* Extras Section */
.extras-section {
    padding: 100px 0;
    background-color: #4a4a3a;
    position: relative;
}

.extras-content {
    max-width: 900px;
    margin: 0 auto;
}

.extras-link {
    display: inline-block;
    margin-top: 15px;
    color: #f5f0e6;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 8px 20px;
    border: 1px solid rgba(245, 240, 230, 0.4);
    border-radius: 6px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.extras-link:hover {
    background: rgba(245, 240, 230, 0.1);
    border-color: rgba(245, 240, 230, 0.6);
}

/* Footer */
.footer {
    color: #f5f0e6;
    text-align: center;
    font-size: 1rem;
    position: relative;
    height: calc(100vh - 76px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.back-video {
  object-fit: cover;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.footer-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
}

.footer-heart {
    display: inline-block;
    vertical-align: middle;
}

.footer-decorations {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    opacity: 0.6;
}

.footer-decorations svg {
    flex-shrink: 0;
}

/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Desktop to Tablet transition */
@media (max-width: 1024px) {
    .hero-content {
        gap: 30px;
        padding: 30px 20px;
    }
    
    .hero-subtitle {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-party-subtitle {
        font-size: 4rem;
    }
    
    .hero-content .bottle {
        max-width: 300px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
        gap: 20px;
    }
    
    .hero-content > div {
        max-width: 100%;
        align-items: center;
    }
    
    .hero-content .bottle {
        max-width: 250px;
        order: -1;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }
    
    .hero-party-subtitle {
        font-size: 3rem;
        margin-top: 25px;
        transform: rotate(-3deg);
        align-self: center;
        margin-left: 0;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .rsvp-form {
        padding: 30px 25px;
        margin: 0 15px;
    }
    
    .location-card h3 {
        font-size: 1.5rem;
    }
    
    .details-cards {
        gap: 20px;
    }
    
    .detail-card {
        padding: 25px 20px;
    }
    
    .party-info h3 {
        font-size: 1.4rem;
    }
    
    .party-description {
        font-size: 1rem;
        padding: 0 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-content .bottle {
        max-width: 200px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .hero-party-subtitle {
        font-size: 2.5rem;
        margin-top: 20px;
        transform: rotate(-2deg);
    }
    
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu a {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
        margin-bottom: 35px;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 25px 20px;
    }
    
    .details-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .detail-card {
        padding: 25px 20px;
    }
    
    .location-card h3 {
        font-size: 1.3rem;
    }
    
    .location-card p {
        font-size: 1rem;
    }
    
    .rsvp-form {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .radio-group {
        gap: 12px;
    }
    
    .radio-label {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 14px 25px;
        font-size: 0.9rem;
    }
    
    .party-info h3 {
        font-size: 1.2rem;
    }
    
    .party-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .engagement-section,
    .location-section,
    .rsvp-section {
        padding: 70px 0;
    }
    
    .footer {
        padding: 30px 0;
        font-size: 0.9rem;
    }
    
    .back-video {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .footer-text {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .hero-content .bottle {
        max-width: 150px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-party-subtitle {
        font-size: 2rem;
        margin-top: 15px;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        padding: 5px 8px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .radio-label {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .footer-text {
        font-size: 0.75rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-container {
        padding: 10px;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-content {
        min-height: auto;
        padding: 20px 15px;
        flex-direction: row;
    }
    
    .hero-content .bottle {
        max-width: 150px;
        max-height: 50vh;
        order: 0;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .hero-party-subtitle {
        font-size: 1.8rem;
        margin-top: 15px;
    }
    
    .nav-container {
        padding: 8px 15px;
    }
}

/* Photo Gallery Carousel Styles */
.main-gallery {
    width: 100%;
    max-width: 1400px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.gallery-cell {
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 800px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Flickity viewport */
.flickity-viewport {
    overflow: hidden;
    position: relative;
    height: 100%;
}

/* Flickity slider */
.flickity-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Flickity navigation buttons */
.flickity-button {
    position: absolute;
    background: rgba(245, 240, 230, 0.3);
    border: 2px solid rgba(245, 240, 230, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 10;
}

.flickity-button:active {
    opacity: 0.6;
}

.flickity-button:disabled {
    opacity: 0.3;
    cursor: auto;
    pointer-events: none;
}

.flickity-button-icon {
    fill: #5c5c4a;
}

.flickity-prev-next-button {
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.flickity-prev-next-button.previous {
    left: 10px;
}

.flickity-prev-next-button.next {
    right: 10px;
}

/* Flickity page dots */
.flickity-page-dots {
    position: absolute;
    width: 100%;
    bottom: -40px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    line-height: 1;
}

.flickity-page-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: rgba(245, 240, 230, 0.4);
    border-radius: 50%;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.flickity-page-dots .dot.is-selected {
    background: rgba(245, 240, 230, 1);
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
}

/* Tablet Styles */
@media (max-width: 768px) {
    .main-gallery {
        margin: 70px auto 30px;
        padding: 0 15px;
    }
    
    .gallery-cell {
        height: 60vh;
        min-height: 350px;
        max-height: 600px;
        margin-right: 8px;
    }
    
    .flickity-button {
        width: 40px;
        height: 40px;
    }
    
    .flickity-prev-next-button.previous {
        left: 5px;
    }
    
    .flickity-prev-next-button.next {
        right: 5px;
    }
    
    .flickity-page-dots {
        bottom: -35px;
    }
    
    .flickity-page-dots .dot {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .main-gallery {
        margin: 60px auto 20px;
        padding: 0 10px;
    }
    
    .gallery-cell {
        height: 50vh;
        min-height: 300px;
        max-height: 500px;
        margin-right: 5px;
        border-radius: 6px;
    }
    
    .flickity-button {
        width: 35px;
        height: 35px;
    }
    
    .flickity-prev-next-button.previous {
        left: 3px;
    }
    
    .flickity-prev-next-button.next {
        right: 3px;
    }
    
    .flickity-page-dots {
        bottom: -30px;
    }
    
    .flickity-page-dots .dot {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .gallery-cell {
        height: 45vh;
        min-height: 250px;
    }
    
    .flickity-button {
        width: 30px;
        height: 30px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .gallery-cell {
        height: 80vh;
        min-height: 300px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-cell img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ========================================
   PETS PAGE STYLES
   ======================================== */

/* Hero decorations for pets page */
.hero-ampersand {
    font-style: italic;
    font-size: 0.6em;
    color: var(--gold);
    display: inline-block;
    margin: 0 0.2em;
}
.hero-bg-paw {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.04;
    pointer-events: none;
}
.hero-bg-paw svg {
    width: min(70vw, 70vh);
    height: min(70vw, 70vh);
}
.deco {
    position: absolute;
    opacity: 0.13;
}
.deco-1 {
    top: 5%;
    left: 3%;
    width: 80px;
    transform: rotate(-15deg);
}
.deco-2 {
    top: 12%;
    left: 18%;
    width: 40px;
    transform: rotate(20deg);
}
.deco-3 {
    top: 3%;
    left: 38%;
    width: 55px;
    transform: rotate(-5deg);
}
.deco-4 {
    top: 8%;
    left: 62%;
    width: 45px;
    transform: rotate(30deg);
}
.deco-5 {
    top: 4%;
    left: 80%;
    width: 70px;
    transform: rotate(-20deg);
}
.deco-6 {
    top: 22%;
    left: 91%;
    width: 38px;
    transform: rotate(10deg);
}
.deco-7 {
    top: 38%;
    left: 96%;
    width: 50px;
    transform: rotate(-8deg);
}
.deco-8 {
    top: 55%;
    left: 92%;
    width: 42px;
    transform: rotate(25deg);
}
.deco-9 {
    top: 70%;
    left: 85%;
    width: 65px;
    transform: rotate(-15deg);
}
.deco-10 {
    top: 82%;
    left: 72%;
    width: 48px;
    transform: rotate(18deg);
}
.deco-11 {
    top: 88%;
    left: 55%;
    width: 36px;
    transform: rotate(-30deg);
}
.deco-12 {
    top: 85%;
    left: 38%;
    width: 58px;
    transform: rotate(12deg);
}
.deco-13 {
    top: 80%;
    left: 22%;
    width: 44px;
    transform: rotate(-10deg);
}
.deco-14 {
    top: 75%;
    left: 5%;
    width: 70px;
    transform: rotate(22deg);
}
.deco-15 {
    top: 55%;
    left: 2%;
    width: 38px;
    transform: rotate(-18deg);
}
.deco-16 {
    top: 38%;
    left: 6%;
    width: 52px;
    transform: rotate(8deg);
}
.deco-17 {
    top: 25%;
    left: 75%;
    width: 40px;
    transform: rotate(-25deg);
}
.deco-18 {
    top: 60%;
    left: 15%;
    width: 34px;
    transform: rotate(35deg);
}

/* Pet profiles */
.profiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
@media (max-width: 700px) {
    .profiles-grid {
        grid-template-columns: 1fr;
    }
}
.profile-card {
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.profile-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(201, 169, 110, 0.3);
}
.profile-card > img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--cream-dim);
}
.profile-body {
    padding: 32px;
}
.profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--cream);
    margin-bottom: 4px;
}
.profile-role {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.profile-divider {
    width: 40px;
    height: 1px;
    background: var(--gold-dim);
    margin-bottom: 20px;
}
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-detail {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    color: var(--text-muted);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cream-dim);
}
.profile-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.profile-detail-label {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.72rem;
}
.profile-detail-value {
    color: var(--text-light);
    text-align: right;
}
.profile-bio {
    margin-top: 20px;
    font-size: 1.0rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-style: italic;
}

/* Gallery grid for pets page */
.gallery-section {
    margin-bottom: 60px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.gallery-slot {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    background: var(--bg-light);
}
.gallery-slot.large {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

/* Pets page section spacing */
.pets-page section {
    padding: 120px 24px;
}

/* Center hero content on pets page only */
.pets-page .hero .hero-content {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 100%;
}

/* Roles section for pets page */
.roles-section {
    background: var(--bg-mid);
    padding: 120px 24px;
}
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.role-card {
    background: var(--bg-dark);
    border: 1px solid var(--cream-dim);
    border-radius: 4px;
    padding: 36px 28px;
    text-align: center;
    transition: border-color 0.3s;
}
.role-card:hover {
    border-color: rgba(201, 169, 110, 0.4);
}
.role-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.role-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--cream);
    margin-bottom: 8px;
}
.role-member {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 12px;
}
.role-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}