.contest-entry {
    margin: 0 auto 20px
}

.contest-field {
    overflow: hidden;
    margin-bottom: 15px
}

.contest-field label {
    display: block;
    overflow: hidden;
    font-weight: 600;
    margin-bottom: 4px
}

.contest-checkbox span {
    padding-left: 10px
}

.radio-field-inline,
.checkbox-field-inline {
    float: left;
    margin-right: 10px
}

.radio-field-inline span,
.checkbox-field-inline span {
    padding-left: 4px
}

.contest-upload input {
    border: 0px !important
}

.contest-scheduled {
    color: #fff;
    background: #406d88;
    padding: 10px;
    text-align: center
}

.contest-complete {
    color: #fff;
    background: #af0000;
    padding: 10px;
    text-align: center
}

.dob div {
    display: inline-block
}

.dob_age {
    font-style: italic;
    font-size: 13px;
    margin-top: 5px
}

.dob_month,
.dob_day,
.dob_year {
    width: 140px;
    margin-right: 3px
}

@media (max-width:767px) {

    .dob_month,
    .dob_day,
    .dob_year {
        width: 32%;
        margin-right: 1%
    }
}

.submit-disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.5
}

.required {
    padding-left: 5px;
    color: red
}

#submit {
    margin-top: 15px
}

.thankyou {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #7bab8d;
    background-color: #c4fdcd;
    border-radius: 10px;
}

.contest-caption {
    font-size: 80%
}

.contest_image {
    margin-bottom: 15px
}

.contestimg_center {
    text-align: center
}

.contestimg_full img {
    width: 100%;
    height: auto
}

.contest_details,
.contest_embed {
    margin-bottom: 15px
}

.submit-srr-entry-form {
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px 15px
}

.submit-srr-entry-form span {
    font-weight: 400 !important
}

.contest_dates {
    font-size: 1.1em;
    margin: 5px 0 10px
}

.contest_dates span {
    font-weight: 700
}

.contest_rules {
    font-size: 12px;
    line-height: 15px
}

.contest_rules p {
    opacity: .7
}

.contest_outdate {
    font-weight: 700;
    text-align: center;
    padding: 20px;
    background: #b5b5b54d;
    border: 2px solid #ff7878;
    margin-bottom: 15px
}

.submit-srr-entry-form h3 {
    margin: 0 0 8px
}

.age-gate {
    color: red;
    margin-bottom: .5em;
    margin-top: .5em;
    text-align: center
}

.form-field-_nbsp_ span {
    font-weight: 700 !important
}

.contest-entry-info h2 {
    font-size: 19px;
    margin-top: 0;
    margin-bottom: 0
}

.contest-entry-link {
    width: 100%;
    margin-top: 12px
}

.contest-sc-entry {
    display: block;
    position: relative;
    padding: 7px 0;
    overflow: hidden
}

.contest-sc-entry .contest-entry-info {
    padding-top: 0
}

.contest-sc-entry .srr-date {
    color: #f80000;
    font-weight: 600
}

.contest-style1 .contest-entry-img {
    width: 220px;
    height: 120px;
    background-size: cover;
    float: left;
    margin-right: 15px;
    background-position: center top 20%
}

.contest-style1 .contest-entry-img img {
    display: block;
    z-index: 1000
}

.contest-style1 .contest-excerpt {
    margin-top: 5px
}

.contest-style2,
.contest-style3,
.contest-style4 {
    position: relative;
    width: 49%;
    float: left;
    margin-right: 1%;
    margin-bottom: 12px
}

.contest-style4 {
    width: 32%
}

.contest-style2 .contest-image,
.contest-style3 .contest-image,
.contest-style4 .contest-image {
    position: relative;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center top 20%;
    background-size: cover
}

.contest-style3 .contest-image {
    color: #fff
}

.contest-style2 .contest-image span,
.contest-style4 .contest-image span {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    display: block
}

.contest-style3 .contest-image span {
    position: absolute
}

.contest-style2 .contest-title h2,
.contest-style3 .contest-title h2,
.contest-style4 .contest-title h2 {
    font-size: 18px;
    line-height: 19px;
    margin-top: 8px;
    margin-bottom: 0
}

.contest-style4 .contest-title {
    text-align: center;
    min-height: 60px
}

.contest-style3 a {
    color: #fff !important
}

.contest-style4.endrow {
    margin-right: 0
}

.contest-style3 .contest-info {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6951155462184874) 35%, rgba(0, 0, 0, 0.9) 100%)
}

@media screen and (max-width:1201px) {
    .contest-style4 {
        margin-right: 8px
    }
}

@media screen and (max-width:1198px) {

    .contest-style2,
    .contest-style3 {
        margin-right: 10px
    }
}

@media screen and (max-width:991px) {

    .contest-style2,
    .contest-style3 {
        margin-right: 10px
    }
}

@media screen and (max-width:991px) {
    .contest-style2 {
        margin-right: 12px
    }

    .contest_dates span {
        display: block;
        width: 100%
    }
}

@media screen and (max-width:647px) {

    .contest-style2,
    .contest-style3 {
        margin-right: 10px
    }

    .contest-style4.endrow {
        margin-right: 8px
    }

    .contest-style4 {
        width: 49%;
        margin-right: 1%
    }

    .contest-style4.halfrow {
        margin-right: 0
    }

    .contest-style4 .contest-image {
        height: 225px
    }
}

@media screen and (max-width:546px) {

    .contest-style2,
    .contest-style3 {
        margin-right: 8px
    }

    .contest-entry-info {
        padding-top: 0
    }

    .contest-entry-img {
        width: 120px;
        height: 90px
    }
}

@media screen and (max-width:450px) {
    .contest-style1 .contest-entry-img {
        width: 100%;
        height: auto;
        max-height: 225px;
        background-size: cover;
        float: none;
        margin-right: 0;
        margin-bottom: 10px
    }

    .contest-style2,
    .contest-style3,
    .contest-style4 {
        width: 100%;
        margin-right: 0
    }
}

.contest-featured {
    display: block;
    text-align: center;
    margin-bottom: 15px
}

.contest-featured-image {
    height: 220px;
    margin: 0 auto;
    background-size: cover;
    background-position: center top 20%;
    overflow: hidden
}

.contest-featured-info h2 {
    font-size: 20px;
    line-height: 21px;
    margin-top: 6px;
    margin-bottom: 0
}

.contest-featured-excerpt {
    display: block;
    overflow: hidden;
    margin-bottom: 10px
}

.contest-widget-more {
    display: block;
    text-align: right
}

.contests-widget-wrapper {
    display: block;
    overflow: hidden
}

.contest-wstyle1 {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 9px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 9px
}

.contest-wstyle2 {
    position: relative;
    width: 50%;
    float: left;
    text-align: center;
    padding: 0 4px;
    margin-bottom: 12px
}

.contest-wstyle3 {
    position: relative;
    min-height: 120px;
    width: 50%;
    float: left;
    padding: 0 2px;
    margin-bottom: 12px
}

.contest-wstyle1 .contest-image {
    position: relative;
    width: 30%;
    height: 74px;
    float: left;
    margin-right: 1%;
    background-position: center top 20%;
    overflow: hidden;
    background-size: cover
}

.contest-wstyle2 .contest-image {
    height: 120px;
    background-position: center center;
    margin: 0 auto;
    width: 150px;
    background-size: cover
}

.contest-wstyle3 .contest-image {
    position: relative;
    width: 100%;
    height: 160px;
    background-repeat: no-repeat;
    background-position: center top 20%;
    background-size: cover;
    color: #FFF
}

.contest-wstyle3 .contest-image span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    display: block
}

.contest-wstyle1 .contest-info {
    width: 68%;
    float: right
}

.contest-wstyle1 h2 {
    font-size: 16px !important;
    line-height: 18px !important;
    margin-top: 0;
    margin-bottom: 2px
}

.contest-wstyle2 h2 {
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.2em;
    margin-bottom: 0
}

.contest-wstyle3 .contest-title h2 {
    font-size: 15px;
    line-height: 17px;
    margin-top: 0;
    margin-bottom: 0;
    color: #FFF
}

.contest-wstyle1 .contest-excerpt {
    font-size: .9em;
    line-height: 1.3em;
    margin-top: 4px
}

.contest-wstyle3 a {
    color: #FFF !important
}

.contests-header {
    display: flex
}

.contests-header .contest-img {
    width: 20%;
    height: 45px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top 20%;
    float: left;
    margin: 0 8px 0 0;
    padding: 0;
    min-width: 80px
}

.contests-header .contest-info {
    width: 78%;
    float: left;
    text-align: left;
    font-size: 14px;
    line-height: 15px;
    margin: 0
}

.contests-header .contest-info span {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 17px;
    margin: 0 0 5px
}

.contest-wstyle3 .contest-info {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 20px 10px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6951155462184874) 35%, rgba(0, 0, 0, 0.9) 100%)
}

@media screen and (max-width:1201px) {
    .contest-wstyle1 .contest-info {
        width: 67%;
        float: right
    }
}

@media screen and (max-width:991px) {
    .contest-wstyle1 .contest-image {
        width: 160px;
        height: 120px
    }

    .contest-wstyle1 .contest-info {
        width: initial;
        float: none
    }
}

@media screen and (max-width:767px) {
    .contests-header {
        display: inline-flex
    }
}

@media screen and (max-width:450px) {
    .contest-wstyle1 .contest-image {
        width: 100%;
        height: 200px;
        float: none;
        margin-bottom: 8px
    }

    .contest-wstyle1 .contest-info,
    .contest-wstyle2 {
        width: 100%;
        float: none
    }

    .contest-wstyle1 h2 {
        margin-top: 0
    }

    .contest-wstyle3 {
        height: 200px;
        width: 100%;
        float: none;
        padding: 0
    }

    .contest-wstyle3 .contest-image {
        height: 200px
    }
}

.moreposts {
    display: flex;
    justify-content: center
}

.darktitle .latest-title {
    background: #00000080
}

@media screen and (max-width:991px) {

    .widget .latest-one .latest-image,
    .latest-one-widget .latest-image {
        height: 110px;
        margin-right: 8px
    }

    .widget .latest-one .latest-post {
        width: initial;
        float: none
    }
}

@media screen and (max-width:546px) {
    .widget .latest-one .latest-image {
        width: 100%;
        height: 200px;
        float: none;
        margin-bottom: 15px
    }
}

.contest-error-message {
    padding: 10px;
    background: red;
    color: #fff;
    margin: 10px 0
}

.contest_rules {
    margin-top: 40px
}

.contest-upload {
    border: 3px dashed #749d74;
    color: #536b53;
    background: #e8f7e8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.button-style {
    padding: 10px 20px;
    background-color: #4c994c;
    color: white;
    text-align: center;
    display: inline-block !important;
    font-size: 17px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
}

.button-style:hover {
    background-color: #2f6e2f
}

#imageupload_preview {
    background-position: center center;
    background-size: contain;
    display: none;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 500px
}

.contest-upload .filenotice {
    display: block;
    text-align: center;
}

/* Photo Contest & Modal Styles */
.photo-masonry {
    column-count: 5;
    column-gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

.photo-item {
    position: relative;
    margin-bottom: 10px;
    break-inside: avoid;
}

.voting-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform .3s;
    cursor: pointer;
}

.voting-image:hover {
    transform: scale(1.05);
}

/* Modal overlay - covers entire viewport */
.srr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, .8);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.srr-modal.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Modal content - centered and independent */
.srr-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #222 !important;
    padding: 20px;
    border: 1px solid #444;
    width: calc(100% - 40px);
    max-width: 700px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
}

/* Close button */
.srr-modal-close {
    display: block;
    color: #ddd !important;
    text-align: right !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 0 15px 0 !important;
    cursor: pointer !important;
    transition: color .2s ease;
    min-height: 44px;
    min-width: 44px;
}

.srr-modal-close:focus,
.srr-modal-close:hover {
    color: #fff;
    text-decoration: none;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Image container */
.srr-modal-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

.srr-modal-image-container img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: calc(100vh - 280px);
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Vote button */
#srr-modal-vote-button {
    margin-top: 15px;
    padding: 12px 24px;
    background-color: #28a745 !important;
    border: none;
    border-radius: 5px;
    font-weight: 700 !important;
    transition: background-color .3s;
    font-size: 17px !important;
    color: #fff;
    cursor: pointer;
    min-height: 44px;
    min-width: 120px;
}

#srr-modal-vote-button:hover,
#srr-modal-vote-button:focus {
    background-color: #218838;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Vote restriction messages */
.srr-modal-no-voting,
.srr-modal-vote-restriction {
    display: none;
    margin-top: 10px;
    padding: 12px 15px;
    background-color: #dc3545;
    border-radius: 5px;
    text-align: center;
    font-size: 17px !important;
    color: #fff;
    line-height: 1.4;
}

.srr-modal-vote-restriction.is-visible {
    display: block;
}

/* Navigation arrows */
.srr-modal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: #fff;
    user-select: none;
    cursor: pointer;
    font-weight: 700;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity .2s ease;
}

.srr-modal-nav-arrow:hover,
.srr-modal-nav-arrow:focus {
    opacity: .8;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.srr-modal-nav-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    border-radius: 50%;
    z-index: -1;
}

.srr-modal-right-arrow {
    right: 5px;
}

.srr-modal-left-arrow {
    left: 5px;
}

/* Vote overlay */
.srr-modal-vote-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 128, 0, .8);
    color: #fff;
    font-size: 2em;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
    z-index: 1;
    font-weight: 700;
}

.srr-modal-vote-overlay.is-visible {
    display: flex;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .photo-masonry {
        column-count: 3;
    }
}

@media (max-width: 991px) {
    .photo-masonry {
        column-count: 2;
    }
}

/* Tablet and mobile adjustments */
@media (max-width: 768px) {
    .srr-modal.is-visible {
        padding: 15px;
    }

    .srr-modal-content {
        width: calc(100% - 30px);
        max-height: calc(100vh - 30px);
        padding: 15px;
        border-radius: 6px;
    }

    .srr-modal-close {
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }

    .srr-modal-image-container img {
        max-height: calc(100vh - 240px);
    }

    #srr-modal-vote-button {
        width: 100%;
        padding: 14px 24px;
        font-size: 18px !important;
    }

    .srr-modal-nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* Mobile phones */
@media (max-width: 600px) {
    .photo-masonry {
        column-count: 1;
    }

    .srr-modal.is-visible {
        padding: 10px;
    }

    .srr-modal-content {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        padding: 12px;
        border-radius: 4px;
    }

    .srr-modal-close {
        font-size: 26px !important;
    }

    .srr-modal-image-container {
        margin-bottom: 10px;
    }

    .srr-modal-image-container img {
        max-height: calc(100vh - 200px);
    }

    .srr-modal-nav-arrow {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .srr-modal-right-arrow {
        right: 2px;
    }

    .srr-modal-left-arrow {
        left: 2px;
    }

    #srr-modal-vote-button {
        margin-top: 10px;
        padding: 12px 20px;
        font-size: 16px !important;
    }

    .srr-modal-no-voting,
    .srr-modal-vote-restriction {
        font-size: 15px !important;
        padding: 10px 12px;
    }

    .srr-modal-vote-overlay {
        font-size: 1.5em;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .srr-modal-content {
        padding: 10px;
    }

    .srr-modal-image-container img {
        max-height: calc(100vh - 180px);
    }

    .srr-modal-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Landscape mobile orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .srr-modal.is-visible {
        padding: 10px;
        align-items: flex-start;
    }

    .srr-modal-content {
        max-height: calc(100vh - 20px);
        margin-top: 10px;
    }

    .srr-modal-image-container img {
        max-height: calc(100vh - 160px);
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .srr-modal-content,
    .srr-modal-nav-arrow,
    #srr-modal-vote-button,
    .srr-modal-close {
        transition: none;
    }
}